diff --git a/test/addons-napi/test_exception/test.js b/test/addons-napi/test_exception/test.js index ddd1195fa7234a..b8626b4ddd38a2 100644 --- a/test/addons-napi/test_exception/test.js +++ b/test/addons-napi/test_exception/test.js @@ -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(