test: refactor test-signal-unregister
* var -> const * assert.equal() -> assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/9920 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
3eacb2d3c4
commit
b074ae2e8d
@ -1,13 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var common = require('../common');
|
const common = require('../common');
|
||||||
var assert = require('assert');
|
const assert = require('assert');
|
||||||
var spawn = require('child_process').spawn;
|
const spawn = require('child_process').spawn;
|
||||||
|
|
||||||
var child = spawn(process.argv[0], [common.fixturesDir + '/should_exit.js']);
|
const child = spawn(process.argv[0], [common.fixturesDir + '/should_exit.js']);
|
||||||
child.stdout.once('data', function() {
|
child.stdout.once('data', function() {
|
||||||
child.kill('SIGINT');
|
child.kill('SIGINT');
|
||||||
});
|
});
|
||||||
child.on('exit', common.mustCall(function(exitCode, signalCode) {
|
child.on('exit', common.mustCall(function(exitCode, signalCode) {
|
||||||
assert.equal(exitCode, null);
|
assert.strictEqual(exitCode, null);
|
||||||
assert.equal(signalCode, 'SIGINT');
|
assert.strictEqual(signalCode, 'SIGINT');
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user