From 70d752eac816cb7daf7ad56f6b45d2d71e140105 Mon Sep 17 00:00:00 2001 From: Christopher Rokita Date: Thu, 1 Dec 2016 11:41:17 -0500 Subject: [PATCH] test: refactoring test-cluster-worker-constructor - Using assert.strictEqual instead assert.equal PR-URL: https://github.com/nodejs/node/pull/9956 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Italo A. Casas --- .../test-cluster-worker-constructor.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/parallel/test-cluster-worker-constructor.js b/test/parallel/test-cluster-worker-constructor.js index 2a96d24a8a..f3ae7db731 100644 --- a/test/parallel/test-cluster-worker-constructor.js +++ b/test/parallel/test-cluster-worker-constructor.js @@ -8,21 +8,21 @@ var cluster = require('cluster'); var worker; worker = new cluster.Worker(); -assert.equal(worker.suicide, undefined); -assert.equal(worker.state, 'none'); -assert.equal(worker.id, 0); -assert.equal(worker.process, undefined); +assert.strictEqual(worker.suicide, undefined); +assert.strictEqual(worker.state, 'none'); +assert.strictEqual(worker.id, 0); +assert.strictEqual(worker.process, undefined); worker = new cluster.Worker({ id: 3, state: 'online', process: process }); -assert.equal(worker.suicide, undefined); -assert.equal(worker.state, 'online'); -assert.equal(worker.id, 3); -assert.equal(worker.process, process); +assert.strictEqual(worker.suicide, undefined); +assert.strictEqual(worker.state, 'online'); +assert.strictEqual(worker.id, 3); +assert.strictEqual(worker.process, process); worker = cluster.Worker.call({}, {id: 5}); assert(worker instanceof cluster.Worker); -assert.equal(worker.id, 5); +assert.strictEqual(worker.id, 5);