Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test.js
  • Loading branch information
Deep-Six authored Oct 20, 2017
commit 10348e2153664b13527955b1daabcd52f9c9294c
4 changes: 1 addition & 3 deletions test/addons-napi/test_exception/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +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 ${returnedError.message}` +
` is strictly equal to the thrown error ${theError.message}`);
assert.strictEqual(theError, returnedError);

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