Skip to content

Commit

Permalink
test: use assert.strictEqual()
Browse files Browse the repository at this point in the history
Fixes: #775
PR-URL: #777
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
Nishikoh authored and Gabriel Schulhof committed Jul 30, 2020
1 parent 461e364 commit 4ce40d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/threadsafe_function/threadsafe_function_existing_tsfn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 4ce40d2

Please sign in to comment.