diff --git a/test/addons-napi/test_exception/test.js b/test/addons-napi/test_exception/test.js index b9311add6c92d7..c572b459e6027d 100644 --- a/test/addons-napi/test_exception/test.js +++ b/test/addons-napi/test_exception/test.js @@ -26,7 +26,7 @@ const test_exception = (function() { // Test that the native side successfully captures the exception let returnedError = test_exception.returnException(throwTheError); - assert.strictEqual(theError, returnedError); + assert.strictEqual(returnedError, theError); // Test that the native side passes the exception through assert.throws(