Skip to content

Commit 77334a2

Browse files
crokitatargos
authored andcommitted
test: refactoring test-cluster-worker-constructor
- Using assert.strictEqual instead assert.equal PR-URL: #9956 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent 3c3d2d6 commit 77334a2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎test/parallel/test-cluster-worker-constructor.js‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ var cluster = require('cluster');
88
varworker;
99

1010
worker=newcluster.Worker();
11-
assert.equal(worker.suicide,undefined);
12-
assert.equal(worker.state,'none');
13-
assert.equal(worker.id,0);
14-
assert.equal(worker.process,undefined);
11+
assert.strictEqual(worker.suicide,undefined);
12+
assert.strictEqual(worker.state,'none');
13+
assert.strictEqual(worker.id,0);
14+
assert.strictEqual(worker.process,undefined);
1515

1616
worker=newcluster.Worker({
1717
id: 3,
1818
state: 'online',
1919
process: process
2020
});
21-
assert.equal(worker.suicide,undefined);
22-
assert.equal(worker.state,'online');
23-
assert.equal(worker.id,3);
24-
assert.equal(worker.process,process);
21+
assert.strictEqual(worker.suicide,undefined);
22+
assert.strictEqual(worker.state,'online');
23+
assert.strictEqual(worker.id,3);
24+
assert.strictEqual(worker.process,process);
2525

2626
worker=cluster.Worker.call({},{id: 5});
2727
assert(workerinstanceofcluster.Worker);
28-
assert.equal(worker.id,5);
28+
assert.strictEqual(worker.id,5);

0 commit comments

Comments
(0)