From fa38efa502d4c0bcc964fc5001da59e3a1ebf6a9 Mon Sep 17 00:00:00 2001 From: kanishk30 Date: Sat, 17 Nov 2018 16:46:20 +0530 Subject: [PATCH 1/2] Fixes: test: fixed the arguments order in #24227 --- test/addons-napi/test_exception/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( From 4f0870ea13e194e680a2e875df385b26eaedd12e Mon Sep 17 00:00:00 2001 From: kanishk30 Date: Sat, 17 Nov 2018 16:46:20 +0530 Subject: [PATCH 2/2] test: fix arguments order in napi test_exception --- test/addons-napi/test_exception/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(