Browse Source

test: change equal to strictEqual

This commit changes calls to `assert.equal()` to `assert.strictEqual()`.

PR-URL: https://github.com/nodejs/node/pull/9872
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
v4.x
Kevin Zurawel 8 years ago
committed by Myles Borins
parent
commit
e47195cf78
  1. 4
      test/parallel/test-cluster-shared-handle-bind-error.js

4
test/parallel/test-cluster-shared-handle-bind-error.js

@ -12,7 +12,7 @@ if (cluster.isMaster) {
var server = this;
var worker = cluster.fork();
worker.on('exit', common.mustCall(function(exitCode) {
assert.equal(exitCode, 0);
assert.strictEqual(exitCode, 0);
server.close();
}));
});
@ -20,7 +20,7 @@ if (cluster.isMaster) {
var s = net.createServer(common.fail);
s.listen(common.PORT, common.fail.bind(null, 'listen should have failed'));
s.on('error', common.mustCall(function(err) {
assert.equal(err.code, 'EADDRINUSE');
assert.strictEqual(err.code, 'EADDRINUSE');
process.disconnect();
}));
}

Loading…
Cancel
Save