Skip to content

Commit 9cc435d

Browse files
Deep-SixMylesBorins
authored andcommittedApr 16, 2018
test: improve message for assert.strictEqual()
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>
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

+1-2
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)
Please sign in to comment.