Skip to content

Commit

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

PR-URL: #9903
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
Duy Le authored and MylesBorins committed Jan 24, 2017
1 parent 27789b2 commit 3e5dd7a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/parallel/test-child-process-kill.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var spawn = require('child_process').spawn;
var cat = spawn(common.isWindows ? 'cmd' : 'cat');
const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
const cat = spawn(common.isWindows ? 'cmd' : 'cat');

cat.stdout.on('end', common.mustCall(function() {}));
cat.stderr.on('data', common.fail);
Expand All @@ -13,6 +13,6 @@ cat.on('exit', common.mustCall(function(code, signal) {
assert.strictEqual(signal, 'SIGTERM');
}));

assert.equal(cat.killed, false);
assert.strictEqual(cat.killed, false);
cat.kill();
assert.equal(cat.killed, true);
assert.strictEqual(cat.killed, true);

0 comments on commit 3e5dd7a

Please sign in to comment.