From 76dda9ca37ff6247e8e474b84359751698222dd8 Mon Sep 17 00:00:00 2001 From: k3kathy Date: Thu, 1 Dec 2016 11:22:07 -0600 Subject: [PATCH] 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 Reviewed-By: Evan Lucas --- test/parallel/test-child-process-constructor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-child-process-constructor.js b/test/parallel/test-child-process-constructor.js index 6980810485c964..0abf1289f0737d 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);