From 3a70e49d97760bb21d5a64330c8f0807f924986b Mon Sep 17 00:00:00 2001 From: Jimmie Hansson Date: Fri, 22 Jan 2021 13:36:13 +0100 Subject: [PATCH] Update deprecated assertion --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7b8ff0d..7046fae 100644 --- a/index.js +++ b/index.js @@ -9,8 +9,8 @@ function onAsyncHook (opts, cb) { opts = {} } - assert.equal(typeof opts, 'object', 'on-async-hook: opts should be type object') - assert.equal(typeof cb, 'function', 'on-async-hook: cb should be type function') + assert.strictEqual(typeof opts, 'object', 'on-async-hook: opts should be type object') + assert.strictEqual(typeof cb, 'function', 'on-async-hook: cb should be type function') // catch this if we are not in node 8 try {