Skip to content

Commit da8e3d9

Browse files
kathytruongFishrock123
authored andcommitted
test: refactor test-child-process-constructor
Change all assert.equal() to use assert.strictEqual(). PR-URL: #10060 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
1 parent 9fddf29 commit da8e3d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-child-process-constructor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require('../common');
44
var assert = require('assert');
55
var child_process = require('child_process');
66
var ChildProcess = child_process.ChildProcess;
7-
assert.equal(typeof ChildProcess, 'function');
7+
assert.strictEqual(typeof ChildProcess, 'function');
88

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

18-
assert.equal(child.hasOwnProperty('pid'), true);
18+
assert.strictEqual(child.hasOwnProperty('pid'), true);
1919

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

25-
assert.equal(child.kill(), true);
25+
assert.strictEqual(child.kill(), true);

0 commit comments

Comments
 (0)