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 11'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 ;
55
6- var child = spawn ( process . argv [ 0 ] , [ common . fixturesDir + '/should_exit.js' ] ) ;
6+ const child = spawn ( process . argv [ 0 ] , [ common . fixturesDir + '/should_exit.js' ] ) ;
77child . stdout . once ( 'data' , function ( ) {
88 child . kill ( 'SIGINT' ) ;
99} ) ;
1010child . 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' ) ;
1313} ) ) ;
You can’t perform that action at this time.
0 commit comments