Skip to content

Commit 4ce40d2

Browse files
NishikohGabriel Schulhof
authored andcommitted
test: use assert.strictEqual()
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>
1 parent 461e364 commit 4ce40d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/threadsafe_function/threadsafe_function_existing_tsfn.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module.exports = test(require(`../build/${buildType}/binding.node`))
1010
async function test(binding) {
1111
const testCall = binding.threadsafe_function_existing_tsfn.testCall;
1212

13-
assert(typeof await testCall({ blocking: true, data: true }) === "number");
14-
assert(typeof await testCall({ blocking: true, data: false }) === "undefined");
15-
assert(typeof await testCall({ blocking: false, data: true }) === "number");
16-
assert(typeof await testCall({ blocking: false, data: false }) === "undefined");
13+
assert.strictEqual(typeof await testCall({ blocking: true, data: true }), "number");
14+
assert.strictEqual(typeof await testCall({ blocking: true, data: false }), "undefined");
15+
assert.strictEqual(typeof await testCall({ blocking: false, data: true }), "number");
16+
assert.strictEqual(typeof await testCall({ blocking: false, data: false }), "undefined");
1717
}

0 commit comments

Comments
 (0)