Skip to content

Commit 9cc435d

Browse files
Deep-SixMylesBorins
authored andcommitted
test: improve message for assert.strictEqual()
Backport-PR-URL: #19447 PR-URL: #16013 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 3c84db6 commit 9cc435d

File tree

1 file changed

+1
-2
lines changed
  • test/addons-napi/test_exception

1 file changed

+1
-2
lines changed

test/addons-napi/test_exception/test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ let caughtError;
1111

1212
// Test that the native side successfully captures the exception
1313
let returnedError = test_exception.returnException(throwTheError);
14-
assert.strictEqual(theError, returnedError,
15-
'Returned error is strictly equal to the thrown error');
14+
assert.strictEqual(theError, returnedError);
1615

1716
// Test that the native side passes the exception through
1817
assert.throws(

0 commit comments

Comments
 (0)