Skip to content

Commit

Permalink
changes var to let & const as appropriate
Browse files Browse the repository at this point in the history
change tests to use assert.strictEqual vs assert.equal
  • Loading branch information
mark hughes committed Dec 1, 2016
1 parent 8264a22 commit d061dde
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 d061dde

Please sign in to comment.