Skip to content

Commit

Permalink
test: refactor domain test
Browse files Browse the repository at this point in the history
Use assert.strictEqual() instead of assert.equal().

PR-URL: #10269
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Italo A. Casas <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
junior authored and italoacasas committed Dec 17, 2016
1 parent d9cfd54 commit 74563f0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ const assert = require('assert');
const d = domain.create();

process.on('uncaughtException', common.mustCall(function onUncaught() {
assert.equal(process.domain, null,
'domains stack should be empty in uncaughtException handler');
assert.strictEqual(process.domain, null,
'domains stack should be empty in uncaughtException' +
' handler');
}));

process.on('beforeExit', common.mustCall(function onBeforeExit() {
assert.equal(process.domain, null,
'domains stack should be empty in beforeExit handler');
assert.strictEqual(process.domain, null,
'domains stack should be empty in beforeExit handler');
}));

d.run(function() {
Expand Down

0 comments on commit 74563f0

Please sign in to comment.