From d30df4a927268374d6911a64fe6ed0bd2e855f6c Mon Sep 17 00:00:00 2001 From: Adao Junior Date: Thu, 1 Dec 2016 11:13:29 -0600 Subject: [PATCH] test: refactor domain test Use assert.strictEqual() instead of assert.equal(). --- ...st-domain-stack-empty-in-process-uncaughtexception.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js b/test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js index 8b345741ec95e3..a1699d106d9c7c 100644 --- a/test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js +++ b/test/parallel/test-domain-stack-empty-in-process-uncaughtexception.js @@ -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() {