We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87ccab2 commit c25e33eCopy full SHA for c25e33e
test/parallel/test-signal-unregister.js
@@ -1,13 +1,13 @@
1
'use strict';
2
-var common = require('../common');
3
-var assert = require('assert');
4
-var spawn = require('child_process').spawn;
+const common = require('../common');
+const assert = require('assert');
+const spawn = require('child_process').spawn;
5
6
-var child = spawn(process.argv[0], [common.fixturesDir + '/should_exit.js']);
+const child = spawn(process.argv[0], [common.fixturesDir + '/should_exit.js']);
7
child.stdout.once('data', function() {
8
child.kill('SIGINT');
9
});
10
child.on('exit', common.mustCall(function(exitCode, signalCode) {
11
- assert.equal(exitCode, null);
12
- assert.equal(signalCode, 'SIGINT');
+ assert.strictEqual(exitCode, null);
+ assert.strictEqual(signalCode, 'SIGINT');
13
}));
0 commit comments