File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- var common = require ( '../common' ) ;
3
- var assert = require ( 'assert' ) ;
4
- var spawn = require ( 'child_process' ) . spawn ;
2
+ const common = require ( '../common' ) ;
3
+ const assert = require ( 'assert' ) ;
4
+ const spawn = require ( 'child_process' ) . spawn ;
5
5
6
- var child = spawn ( process . argv [ 0 ] , [ common . fixturesDir + '/should_exit.js' ] ) ;
6
+ const child = spawn ( process . argv [ 0 ] , [ common . fixturesDir + '/should_exit.js' ] ) ;
7
7
child . stdout . once ( 'data' , function ( ) {
8
8
child . kill ( 'SIGINT' ) ;
9
9
} ) ;
10
10
child . on ( 'exit' , common . mustCall ( function ( exitCode , signalCode ) {
11
- assert . equal ( exitCode , null ) ;
12
- assert . equal ( signalCode , 'SIGINT' ) ;
11
+ assert . strictEqual ( exitCode , null ) ;
12
+ assert . strictEqual ( signalCode , 'SIGINT' ) ;
13
13
} ) ) ;
You can’t perform that action at this time.
0 commit comments