forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes var to let & const as appropriate
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
})); |