@@ -84,10 +84,10 @@ describe('Babysitting Child Processes', () => {
84
84
it ( 'gets killed' , ( ) => assert . equal ( processInfo . signal , 'SIGKILL' ) ) ;
85
85
it ( 'returns no status code' , ( ) => assert . isNull ( processInfo . exitStatus ) ) ;
86
86
}
87
- return it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
87
+ it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
88
88
} ) ;
89
89
90
- return describe ( 'process without support for graceful termination' , ( ) => {
90
+ describe ( 'process without support for graceful termination' , ( ) => {
91
91
let processInfo ;
92
92
93
93
before ( done =>
@@ -107,7 +107,7 @@ describe('Babysitting Child Processes', () => {
107
107
it ( 'gets killed' , ( ) => assert . equal ( processInfo . signal , 'SIGKILL' ) ) ;
108
108
it ( 'returns no status code' , ( ) => assert . isNull ( processInfo . exitStatus ) ) ;
109
109
}
110
- return it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
110
+ it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
111
111
} ) ;
112
112
} ) ;
113
113
@@ -131,10 +131,10 @@ describe('Babysitting Child Processes', () => {
131
131
it ( 'does not get terminated directly by the signal' , ( ) => assert . isNull ( processInfo . signal ) ) ;
132
132
}
133
133
it ( 'returns zero status code' , ( ) => assert . equal ( processInfo . exitStatus , 0 ) ) ;
134
- return it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
134
+ it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
135
135
} ) ;
136
136
137
- return describe ( 'process without support for graceful termination' , ( ) => {
137
+ describe ( 'process without support for graceful termination' , ( ) => {
138
138
let processInfo ;
139
139
140
140
before ( done =>
@@ -150,7 +150,7 @@ describe('Babysitting Child Processes', () => {
150
150
it ( 'does not get terminated' , ( ) => assert . isFalse ( processInfo . terminated ) ) ;
151
151
it ( 'has undefined status code' , ( ) => assert . isUndefined ( processInfo . exitStatus ) ) ;
152
152
it ( 'emits an error' , ( ) => assert . instanceOf ( processInfo . error , Error ) ) ;
153
- return it ( 'the error has a message about unsuccessful termination' , ( ) =>
153
+ it ( 'the error has a message about unsuccessful termination' , ( ) =>
154
154
assert . equal (
155
155
processInfo . error . message ,
156
156
`Unable to gracefully terminate process ${ processInfo . childProcess . pid } `
@@ -179,10 +179,10 @@ describe('Babysitting Child Processes', () => {
179
179
it ( 'does not get terminated directly by the signal' , ( ) => assert . isNull ( processInfo . signal ) ) ;
180
180
}
181
181
it ( 'returns zero status code' , ( ) => assert . equal ( processInfo . exitStatus , 0 ) ) ;
182
- return it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
182
+ it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
183
183
} ) ;
184
184
185
- return describe ( 'process without support for graceful termination' , ( ) => {
185
+ describe ( 'process without support for graceful termination' , ( ) => {
186
186
let processInfo ;
187
187
188
188
before ( done =>
@@ -204,11 +204,11 @@ describe('Babysitting Child Processes', () => {
204
204
it ( 'gets killed' , ( ) => assert . equal ( processInfo . signal , 'SIGKILL' ) ) ;
205
205
it ( 'returns no status code' , ( ) => assert . isNull ( processInfo . exitStatus ) ) ;
206
206
}
207
- return it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
207
+ it ( 'does not emit an error' , ( ) => assert . isUndefined ( processInfo . error ) ) ;
208
208
} ) ;
209
209
} ) ;
210
210
211
- return describe ( 'when child process terminates' , ( ) => {
211
+ describe ( 'when child process terminates' , ( ) => {
212
212
describe ( 'normally with zero status code' , ( ) => {
213
213
let processInfo ;
214
214
@@ -225,7 +225,7 @@ describe('Babysitting Child Processes', () => {
225
225
it ( 'does not emit the \'crash\' event' , ( ) => assert . isFalse ( processInfo . onCrash . called ) ) ;
226
226
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
227
227
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
228
- return it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
228
+ it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
229
229
} ) ;
230
230
231
231
describe ( 'normally with non-zero status code' , ( ) => {
@@ -246,7 +246,7 @@ describe('Babysitting Child Processes', () => {
246
246
it ( 'the \'crash\' event is not provided with killed flag' , ( ) => assert . isFalse ( processInfo . onCrash . getCall ( 0 ) . args [ 1 ] ) ) ;
247
247
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
248
248
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
249
- return it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
249
+ it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
250
250
} ) ;
251
251
252
252
describe ( 'intentionally gracefully with zero status code' , ( ) => {
@@ -265,7 +265,7 @@ describe('Babysitting Child Processes', () => {
265
265
it ( 'does not emit the \'crash\' event' , ( ) => assert . isFalse ( processInfo . onCrash . called ) ) ;
266
266
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
267
267
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
268
- return it ( 'is flagged as intentionally terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminatedIntentionally ) ) ;
268
+ it ( 'is flagged as intentionally terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminatedIntentionally ) ) ;
269
269
} ) ;
270
270
271
271
describe ( 'intentionally gracefully with non-zero status code' , ( ) => {
@@ -284,7 +284,7 @@ describe('Babysitting Child Processes', () => {
284
284
it ( 'does not emit the \'crash\' event' , ( ) => assert . isFalse ( processInfo . onCrash . called ) ) ;
285
285
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
286
286
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
287
- return it ( 'is flagged as intentionally terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminatedIntentionally ) ) ;
287
+ it ( 'is flagged as intentionally terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminatedIntentionally ) ) ;
288
288
} ) ;
289
289
290
290
describe ( 'intentionally forcefully' , ( ) => {
@@ -308,7 +308,7 @@ describe('Babysitting Child Processes', () => {
308
308
it ( 'does not emit the \'crash\' event' , ( ) => assert . isFalse ( processInfo . onCrash . called ) ) ;
309
309
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
310
310
it ( 'is flagged as intentionally killed' , ( ) => assert . isTrue ( processInfo . childProcess . killedIntentionally ) ) ;
311
- return it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
311
+ it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
312
312
} ) ;
313
313
314
314
describe ( 'gracefully with zero status code' , ( ) => {
@@ -332,7 +332,7 @@ describe('Babysitting Child Processes', () => {
332
332
it ( 'does not emit the \'crash\' event' , ( ) => assert . isFalse ( processInfo . onCrash . called ) ) ;
333
333
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
334
334
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
335
- return it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
335
+ it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
336
336
} ) ;
337
337
338
338
describe ( 'gracefully with non-zero status code' , ( ) => {
@@ -358,10 +358,10 @@ describe('Babysitting Child Processes', () => {
358
358
it ( 'the \'crash\' event is not provided with killed flag' , ( ) => assert . isFalse ( processInfo . onCrash . getCall ( 0 ) . args [ 1 ] ) ) ;
359
359
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
360
360
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
361
- return it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
361
+ it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
362
362
} ) ;
363
363
364
- return describe ( 'forcefully' , ( ) => {
364
+ describe ( 'forcefully' , ( ) => {
365
365
let processInfo ;
366
366
367
367
before ( done =>
@@ -394,7 +394,7 @@ describe('Babysitting Child Processes', () => {
394
394
}
395
395
it ( 'is flagged as terminated' , ( ) => assert . isTrue ( processInfo . childProcess . terminated ) ) ;
396
396
it ( 'is not flagged as intentionally killed' , ( ) => assert . isFalse ( processInfo . childProcess . killedIntentionally ) ) ;
397
- return it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
397
+ it ( 'is not flagged as intentionally terminated' , ( ) => assert . isFalse ( processInfo . childProcess . terminatedIntentionally ) ) ;
398
398
} ) ;
399
399
} ) ;
400
400
} ) ;
0 commit comments