Browse Source

test: replace equal with strictEqual

PR-URL: https://github.com/nodejs/node/pull/10011
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x
Tracy Hinds 8 years ago
committed by Anna Henningsen
parent
commit
8ce6dd2a57
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 4
      test/parallel/test-domain-abort-on-uncaught.js

4
test/parallel/test-domain-abort-on-uncaught.js

@ -227,7 +227,7 @@ if (process.argv[2] === 'child') {
tests[testIndex]();
process.on('exit', function onExit() {
assert.equal(errorHandlerCalled, true);
assert.strictEqual(errorHandlerCalled, true);
});
} else {
@ -248,7 +248,7 @@ if (process.argv[2] === 'child') {
var child = child_process.exec(testCmd);
child.on('exit', function onExit(code, signal) {
assert.equal(code, 0, 'Test at index ' + testIndex +
assert.strictEqual(code, 0, 'Test at index ' + testIndex +
' should have exited with exit code 0 but instead exited with code ' +
code + ' and signal ' + signal);
});

Loading…
Cancel
Save