From 46cafadeac895011a0f76eb544bca7497864ecda Mon Sep 17 00:00:00 2001 From: Jesus Hernandez Date: Wed, 8 Apr 2020 16:01:35 -0500 Subject: [PATCH] test: replace equal with strictEqual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/32727 Reviewed-By: Anna Henningsen Reviewed-By: Gerhard Stöbich Reviewed-By: Colin Ihrig --- test/parallel/test-assert-if-error.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-assert-if-error.js b/test/parallel/test-assert-if-error.js index 6765870e357d67..76539bb69b44f0 100644 --- a/test/parallel/test-assert-if-error.js +++ b/test/parallel/test-assert-if-error.js @@ -1,8 +1,7 @@ 'use strict'; require('../common'); -const assert = require('assert').strict; -/* eslint-disable no-restricted-properties */ +const assert = require('assert'); // Test that assert.ifError has the correct stack trace of both stacks. @@ -26,12 +25,13 @@ const stack = err.stack; try { assert.ifError(err); } catch (e) { - assert.equal(e.message, 'ifError got unwanted exception: test error'); - assert.equal(err.message, msg); - assert.equal(e.actual, err); - assert.equal(e.actual.stack, stack); - assert.equal(e.expected, null); - assert.equal(e.operator, 'ifError'); + assert.strictEqual(e.message, + 'ifError got unwanted exception: test error'); + assert.strictEqual(err.message, msg); + assert.strictEqual(e.actual, err); + assert.strictEqual(e.actual.stack, stack); + assert.strictEqual(e.expected, null); + assert.strictEqual(e.operator, 'ifError'); threw = true; } assert(threw);