Browse Source

test: refactor domain test

Use assert.strictEqual() instead of assert.equal().

PR-URL: https://github.com/nodejs/node/pull/10269
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Adao Junior 8 years ago
committed by Rich Trott
parent
commit
9a347539a7
  1. 7
      test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js

7
test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js

@ -7,12 +7,13 @@ const assert = require('assert');
const d = domain.create(); const d = domain.create();
process.on('uncaughtException', common.mustCall(function onUncaught() { process.on('uncaughtException', common.mustCall(function onUncaught() {
assert.equal(process.domain, null, assert.strictEqual(process.domain, null,
'domains stack should be empty in uncaughtException handler'); 'domains stack should be empty in uncaughtException' +
' handler');
})); }));
process.on('beforeExit', common.mustCall(function onBeforeExit() { process.on('beforeExit', common.mustCall(function onBeforeExit() {
assert.equal(process.domain, null, assert.strictEqual(process.domain, null,
'domains stack should be empty in beforeExit handler'); 'domains stack should be empty in beforeExit handler');
})); }));

Loading…
Cancel
Save