Skip to content

Commit

Permalink
test: improve message for assert.strictEqual()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Deep-Six authored and MylesBorins committed Apr 16, 2018
1 parent 3c84db6 commit 9cc435d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/addons-napi/test_exception/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ let caughtError;

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

// Test that the native side passes the exception through
assert.throws(
Expand Down

0 comments on commit 9cc435d

Please sign in to comment.