mirror of https://github.com/lukechilds/node.git
Browse Source
* 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>v6.x
committed by
Anna Henningsen
1 changed files with 6 additions and 6 deletions
@ -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'); |
|||
})); |
|||
|
Loading…
Reference in new issue