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

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎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
asyncfunctiontest(binding){
1111
consttestCall=binding.threadsafe_function_existing_tsfn.testCall;
1212

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

0 commit comments

Comments
 (0)