Browse Source

test: refactor test-cluster-setup-master-argv

Change assert.equal to assert.strictEqual.

PR-URL: https://github.com/nodejs/node/pull/9993
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Christine Hong 8 years ago
committed by Rich Trott
parent
commit
3f1973372b
  1. 4
      test/parallel/test-cluster-setup-master-argv.js

4
test/parallel/test-cluster-setup-master-argv.js

@ -8,8 +8,8 @@ setTimeout(common.fail.bind(assert, 'setup not emitted'), 1000).unref();
cluster.on('setup', function() {
var clusterArgs = cluster.settings.args;
var realArgs = process.argv;
assert.equal(clusterArgs[clusterArgs.length - 1],
realArgs[realArgs.length - 1]);
assert.strictEqual(clusterArgs[clusterArgs.length - 1],
realArgs[realArgs.length - 1]);
});
assert.notStrictEqual(process.argv[process.argv.length - 1], 'OMG,OMG');

Loading…
Cancel
Save