From fe758b7992e89979d17811ea24c2bca8d3904be2 Mon Sep 17 00:00:00 2001 From: Kenvin Davies 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 d77f57e..d5ab185 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"); }