@@ -52,41 +52,37 @@ function basicBooleanExample(options: {
52
52
} ) {
53
53
const { environmentKey, setValueFn, getValueFn } = options ;
54
54
55
- it ( "default" , async ( ) => {
55
+ it ( "default" , ( ) =>
56
56
test ( {
57
57
getValueFn,
58
58
environment : { } ,
59
59
configuration : { } ,
60
60
expectedValue : options . default ,
61
- } ) ;
62
- } ) ;
61
+ } ) ) ;
63
62
64
- it ( "override by explicit configuration (boolean)" , ( ) => {
63
+ it ( "override by explicit configuration (boolean)" , ( ) =>
65
64
test ( {
66
65
getValueFn,
67
66
environment : { } ,
68
67
configuration : createUserConfiguration ( { setValueFn, value : true } ) ,
69
68
expectedValue : true ,
70
- } ) ;
71
- } ) ;
69
+ } ) ) ;
72
70
73
- it ( "override by environment (boolean)" , ( ) => {
71
+ it ( "override by environment (boolean)" , ( ) =>
74
72
test ( {
75
73
getValueFn,
76
74
environment : { [ environmentKey ] : true } ,
77
75
configuration : { } ,
78
76
expectedValue : true ,
79
- } ) ;
80
- } ) ;
77
+ } ) ) ;
81
78
82
- it ( "precedence" , ( ) => {
79
+ it ( "precedence" , ( ) =>
83
80
test ( {
84
81
getValueFn,
85
82
environment : { [ environmentKey ] : true } ,
86
83
configuration : createUserConfiguration ( { setValueFn, value : false } ) ,
87
84
expectedValue : true ,
88
- } ) ;
89
- } ) ;
85
+ } ) ) ;
90
86
91
87
describe ( "environment string interpretation" , ( ) => {
92
88
const matrix = [
@@ -97,7 +93,7 @@ function basicBooleanExample(options: {
97
93
] ;
98
94
99
95
for ( const { environmentValue, expectedValue } of matrix ) {
100
- it ( JSON . stringify ( environmentValue ) , ( ) => {
96
+ it ( JSON . stringify ( environmentValue ) , ( ) =>
101
97
test ( {
102
98
getValueFn,
103
99
environment : { [ environmentKey ] : environmentValue } ,
@@ -106,12 +102,12 @@ function basicBooleanExample(options: {
106
102
value : ! expectedValue ,
107
103
} ) ,
108
104
expectedValue : expectedValue ,
109
- } ) ;
110
- } ) ;
105
+ } )
106
+ ) ;
111
107
}
112
108
113
109
// defers to next value
114
- it ( '"" and explicit value' , ( ) => {
110
+ it ( '"" and explicit value' , ( ) =>
115
111
test ( {
116
112
getValueFn,
117
113
environment : { [ environmentKey ] : "" } ,
@@ -120,17 +116,15 @@ function basicBooleanExample(options: {
120
116
value : true ,
121
117
} ) ,
122
118
expectedValue : true ,
123
- } ) ;
124
- } ) ;
119
+ } ) ) ;
125
120
126
- it ( '"" and no explicit values' , ( ) => {
121
+ it ( '"" and no explicit values' , ( ) =>
127
122
test ( {
128
123
getValueFn,
129
124
environment : { [ environmentKey ] : "" } ,
130
125
configuration : { } ,
131
126
expectedValue : false ,
132
- } ) ;
133
- } ) ;
127
+ } ) ) ;
134
128
} ) ;
135
129
}
136
130
@@ -142,41 +136,37 @@ function basicStringExample(options: {
142
136
} ) {
143
137
const { environmentKey, setValueFn, getValueFn } = options ;
144
138
145
- it ( "default" , async ( ) => {
139
+ it ( "default" , ( ) =>
146
140
test ( {
147
141
getValueFn,
148
142
environment : { } ,
149
143
configuration : { } ,
150
144
expectedValue : options . default ,
151
- } ) ;
152
- } ) ;
145
+ } ) ) ;
153
146
154
- it ( "override by explicit configuration" , ( ) => {
147
+ it ( "override by explicit configuration" , ( ) =>
155
148
test ( {
156
149
getValueFn,
157
150
environment : { } ,
158
151
configuration : createUserConfiguration ( { setValueFn, value : "foo" } ) ,
159
152
expectedValue : "foo" ,
160
- } ) ;
161
- } ) ;
153
+ } ) ) ;
162
154
163
- it ( "override by environment" , ( ) => {
155
+ it ( "override by environment" , ( ) =>
164
156
test ( {
165
157
getValueFn,
166
158
environment : { [ environmentKey ] : "foo" } ,
167
159
configuration : { } ,
168
160
expectedValue : "foo" ,
169
- } ) ;
170
- } ) ;
161
+ } ) ) ;
171
162
172
- it ( "precedence" , ( ) => {
163
+ it ( "precedence" , ( ) =>
173
164
test ( {
174
165
getValueFn,
175
166
environment : { [ environmentKey ] : "bar" } ,
176
167
configuration : createUserConfiguration ( { setValueFn, value : "foo" } ) ,
177
168
expectedValue : "bar" ,
178
- } ) ;
179
- } ) ;
169
+ } ) ) ;
180
170
}
181
171
182
172
describe ( "resolve()" , ( ) => {
@@ -350,10 +340,10 @@ describe("resolve()", () => {
350
340
351
341
describe ( "output" , ( ) => {
352
342
const getValueFn = ( configuration : IPreprocessorConfiguration ) : string =>
353
- configuration . json . output ;
343
+ configuration . html . output ;
354
344
355
345
const setValueFn = ( configuration : IUserConfiguration , value : string ) =>
356
- ( configuration . json = { enabled : true , output : value } ) ;
346
+ ( configuration . html = { enabled : true , output : value } ) ;
357
347
358
348
basicStringExample ( {
359
349
default : "cucumber-report.html" ,
0 commit comments