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 <jasnell@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Deep-Six authored and gireeshpunathil committed Oct 22, 2017
1 parent 8e268c7 commit e07e708
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 e07e708

Please sign in to comment.