Skip to content

Commit

Permalink
test: refactor test-signal-unregister
Browse files Browse the repository at this point in the history
* var -> const
* assert.equal() -> assert.strictEqual()

PR-URL: nodejs#9920
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mark hughes authored and addaleax committed Dec 8, 2016
1 parent 093adca commit 75c37fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/parallel/test-signal-unregister.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var spawn = require('child_process').spawn;
const common = require('../common');
const assert = require('assert');
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.kill('SIGINT');
});
child.on('exit', common.mustCall(function(exitCode, signalCode) {
assert.equal(exitCode, null);
assert.equal(signalCode, 'SIGINT');
assert.strictEqual(exitCode, null);
assert.strictEqual(signalCode, 'SIGINT');
}));

0 comments on commit 75c37fa

Please sign in to comment.