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>
This commit is contained in:
Adao Junior authored and Rich Trott committed 2016-12-16 21:18:42 -08:00
1 parent 4913acd364
commit 9a347539a7
1 file changed
+5 -4
@@ -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() {