Skip to content

Commit 6bdd59a

Browse files
crokitaMylesBorins
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 806daff commit 6bdd59a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ var cluster = require('cluster');
88
var worker;
99

1010
worker = new cluster.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 = new cluster.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(worker instanceof cluster.Worker);
28-
assert.equal(worker.id, 5);
28+
assert.strictEqual(worker.id, 5);

0 commit comments

Comments
 (0)