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"); }