Skip to content

Commit c25e33e

Browse files
mark hughesMylesBorins
mark hughes
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 87ccab2 commit c25e33e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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']);
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)