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 <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 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
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.