Skip to content

Commit

Permalink
test: improve message for assert.strictEqual()
Browse files Browse the repository at this point in the history
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 Oct 23, 2017
1 parent b1c7889 commit d7b4ad8
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 d7b4ad8

Please sign in to comment.