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: nodejs#10269
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
junior authored and Trott committed Dec 17, 2016
1 parent 4913acd commit 9a34753
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 9a34753

Please sign in to comment.