Skip to content

Commit

Permalink
test: refactor test-child-process-constructor
Browse files Browse the repository at this point in the history
Change all assert.equal() to use assert.strictEqual().

PR-URL: #10060
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
  • Loading branch information
kathytruong authored and Fishrock123 committed Dec 5, 2016
1 parent 9fddf29 commit da8e3d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-child-process-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require('../common');
var assert = require('assert');
var child_process = require('child_process');
var ChildProcess = child_process.ChildProcess;
assert.equal(typeof ChildProcess, 'function');
assert.strictEqual(typeof ChildProcess, 'function');

// test that we can call spawn
var child = new ChildProcess();
Expand All @@ -15,11 +15,11 @@ child.spawn({
stdio: 'pipe'
});

assert.equal(child.hasOwnProperty('pid'), true);
assert.strictEqual(child.hasOwnProperty('pid'), true);

// try killing with invalid signal
assert.throws(function() {
child.kill('foo');
}, /Unknown signal: foo/);

assert.equal(child.kill(), true);
assert.strictEqual(child.kill(), true);

0 comments on commit da8e3d9

Please sign in to comment.