summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-constructor.js
diff options
context:
space:
mode:
authork3kathy <kathy.yvy.truong@gmail.com>2016-12-01 11:22:07 -0600
committerRich Trott <rtrott@gmail.com>2016-12-04 19:54:01 -0800
commit3e387cd46ebf75ecfb24940932812b6f60ea33e3 (patch)
tree64da7c6e28414d5482ef77207e71e6ce20a967f2 /test/parallel/test-child-process-constructor.js
parent4f3c761ac010ed597921650100637dd0d5340824 (diff)
downloadandroid-node-v8-3e387cd46ebf75ecfb24940932812b6f60ea33e3.tar.gz
android-node-v8-3e387cd46ebf75ecfb24940932812b6f60ea33e3.tar.bz2
android-node-v8-3e387cd46ebf75ecfb24940932812b6f60ea33e3.zip
test: refactor test-child-process-constructor
Change all assert.equal() to use assert.strictEqual(). PR-URL: https://github.com/nodejs/node/pull/10060 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'test/parallel/test-child-process-constructor.js')
-rw-r--r--test/parallel/test-child-process-constructor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-constructor.js b/test/parallel/test-child-process-constructor.js
index 6980810485..0abf1289f0 100644
--- a/test/parallel/test-child-process-constructor.js
+++ b/test/parallel/test-child-process-constructor.js
@@ -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();
@@ -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);