Skip to content

Commit 75c37fa

Browse files
mark hughesaddaleax
authored andcommitted
test: refactor test-signal-unregister
* var -> const * assert.equal() -> assert.strictEqual() PR-URL: #9920 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 093adca commit 75c37fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
2-
varcommon=require('../common');
3-
varassert=require('assert');
4-
varspawn=require('child_process').spawn;
2+
constcommon=require('../common');
3+
constassert=require('assert');
4+
constspawn=require('child_process').spawn;
55

6-
varchild=spawn(process.argv[0],[common.fixturesDir+'/should_exit.js']);
6+
constchild=spawn(process.argv[0],[common.fixturesDir+'/should_exit.js']);
77
child.stdout.once('data',function(){
88
child.kill('SIGINT');
99
});
1010
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');
1313
}));

0 commit comments

Comments
(0)