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:
parent
4913acd364
commit
9a347539a7
@ -7,13 +7,14 @@ 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');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
d.run(function() {
|
d.run(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user