Skip to content

Commit 74563f0

Browse files
juniorItalo A. Casas
authored andcommitted
test: refactor domain test
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]>
1 parent d9cfd54 commit 74563f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ const assert = require('assert');
77
constd=domain.create();
88

99
process.on('uncaughtException',common.mustCall(functiononUncaught(){
10-
assert.equal(process.domain,null,
11-
'domains stack should be empty in uncaughtException handler');
10+
assert.strictEqual(process.domain,null,
11+
'domains stack should be empty in uncaughtException'+
12+
' handler');
1213
}));
1314

1415
process.on('beforeExit',common.mustCall(functiononBeforeExit(){
15-
assert.equal(process.domain,null,
16-
'domains stack should be empty in beforeExit handler');
16+
assert.strictEqual(process.domain,null,
17+
'domains stack should be empty in beforeExit handler');
1718
}));
1819

1920
d.run(function(){

0 commit comments

Comments
(0)