@@ -129,112 +129,95 @@ describe("[common]", () => {
129
129
it ( "Node API" , async ( ) => {
130
130
await nodeApi ( null )
131
131
assert ( result ( ) == null )
132
- }
133
- )
132
+ } )
134
133
} )
135
134
136
135
describe ( "should run a task by npm (check an environment variable):" , ( ) => {
137
136
it ( "Node API" , async ( ) => {
138
137
await nodeApi ( "test-task:package-config" )
139
138
assert ( result ( ) === "OK" )
140
- }
141
- )
139
+ } )
142
140
143
141
it ( "npm-run-all command" , async ( ) => {
144
142
await runAll ( [ "test-task:package-config" ] )
145
143
assert ( result ( ) === "OK" )
146
- }
147
- )
144
+ } )
148
145
149
146
it ( "run-s command" , async ( ) => {
150
147
await runSeq ( [ "test-task:package-config" ] )
151
148
assert ( result ( ) === "OK" )
152
- }
153
- )
149
+ } )
154
150
155
151
it ( "run-p command" , async ( ) => {
156
152
await runPar ( [ "test-task:package-config" ] )
157
153
assert ( result ( ) === "OK" )
158
- }
159
- )
154
+ } )
160
155
} )
161
156
162
157
describe ( "stdin can be used in tasks:" , ( ) => {
163
158
it ( "Node API" , async ( ) => {
164
159
await nodeApi ( "test-task:stdin" )
165
160
assert ( result ( ) . trim ( ) === "STDIN" )
166
- }
167
- )
161
+ } )
168
162
169
163
it ( "npm-run-all command" , async ( ) => {
170
164
await runAll ( [ "test-task:stdin" ] )
171
165
assert ( result ( ) . trim ( ) === "STDIN" )
172
- }
173
- )
166
+ } )
174
167
175
168
it ( "run-s command" , async ( ) => {
176
169
await runSeq ( [ "test-task:stdin" ] )
177
170
assert ( result ( ) . trim ( ) === "STDIN" )
178
- }
179
- )
171
+ } )
180
172
181
173
it ( "run-p command" , async ( ) => {
182
174
await runPar ( [ "test-task:stdin" ] )
183
175
assert ( result ( ) . trim ( ) === "STDIN" )
184
- }
185
- )
176
+ } )
186
177
} )
187
178
188
179
describe ( "stdout can be used in tasks:" , ( ) => {
189
180
it ( "Node API" , async ( ) => {
190
181
await nodeApi ( "test-task:stdout" )
191
182
assert ( result ( ) === "STDOUT" )
192
- }
193
- )
183
+ } )
194
184
195
185
it ( "npm-run-all command" , async ( ) => {
196
186
await runAll ( [ "test-task:stdout" ] )
197
187
assert ( result ( ) === "STDOUT" )
198
- }
199
- )
188
+ } )
200
189
201
190
it ( "run-s command" , async ( ) => {
202
191
await runSeq ( [ "test-task:stdout" ] )
203
192
assert ( result ( ) === "STDOUT" )
204
- }
205
- )
193
+ } )
206
194
207
195
it ( "run-p command" , async ( ) => {
208
196
await runPar ( [ "test-task:stdout" ] )
209
197
assert ( result ( ) === "STDOUT" )
210
- }
211
- )
198
+ } )
212
199
} )
213
200
214
201
describe ( "stderr can be used in tasks:" , ( ) => {
215
202
it ( "Node API" , async ( ) => {
216
203
await nodeApi ( "test-task:stderr" )
217
204
assert ( result ( ) === "STDERR" )
218
- }
219
- )
205
+ } )
220
206
221
207
it ( "npm-run-all command" , async ( ) => {
222
208
await runAll ( [ "test-task:stderr" ] )
223
209
assert ( result ( ) === "STDERR" )
224
- }
225
- )
210
+ } )
226
211
227
212
it ( "run-s command" , async ( ) => {
228
213
await runSeq ( [ "test-task:stderr" ] )
229
214
assert ( result ( ) === "STDERR" )
230
- }
231
- )
215
+ } )
232
216
233
217
it ( "run-p command" , async ( ) => {
234
218
await runPar ( [ "test-task:stderr" ] )
235
219
assert ( result ( ) === "STDERR" )
236
- }
237
- )
220
+ } )
238
221
} )
239
222
240
223
describe ( "should be able to use `restart` built-in task:" , ( ) => {
0 commit comments