From 4ce40d22a62d2c784b009179b74bfa1d0b5c810d Mon Sep 17 00:00:00 2001 From: Koki Nishihara Date: Sun, 26 Jul 2020 08:30:32 +0900 Subject: [PATCH] test: use assert.strictEqual() Fixes: https://github.com/nodejs/node-addon-api/issues/775 PR-URL: https://github.com/nodejs/node-addon-api/pull/777 Reviewed-By: Nicola Del Gobbo Reviewed-By: Gabriel Schulhof Reviewed-By: Michael Dawson --- .../threadsafe_function_existing_tsfn.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/threadsafe_function/threadsafe_function_existing_tsfn.js b/test/threadsafe_function/threadsafe_function_existing_tsfn.js index d77f57ef1..d5ab1854a 100644 --- a/test/threadsafe_function/threadsafe_function_existing_tsfn.js +++ b/test/threadsafe_function/threadsafe_function_existing_tsfn.js @@ -10,8 +10,8 @@ module.exports = test(require(`../build/${buildType}/binding.node`)) async function test(binding) { const testCall = binding.threadsafe_function_existing_tsfn.testCall; - assert(typeof await testCall({ blocking: true, data: true }) === "number"); - assert(typeof await testCall({ blocking: true, data: false }) === "undefined"); - assert(typeof await testCall({ blocking: false, data: true }) === "number"); - assert(typeof await testCall({ blocking: false, data: false }) === "undefined"); + assert.strictEqual(typeof await testCall({ blocking: true, data: true }), "number"); + assert.strictEqual(typeof await testCall({ blocking: true, data: false }), "undefined"); + assert.strictEqual(typeof await testCall({ blocking: false, data: true }), "number"); + assert.strictEqual(typeof await testCall({ blocking: false, data: false }), "undefined"); }