From 9cc435dc85b24b64f187555f55adde0cba249730 Mon Sep 17 00:00:00 2001 From: "Jayson D. Henkel" Date: Fri, 6 Oct 2017 11:51:17 -0700 Subject: [PATCH] test: improve message for assert.strictEqual() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport-PR-URL: /~https://github.com/nodejs/node/pull/19447 PR-URL: /~https://github.com/nodejs/node/pull/16013 Reviewed-By: James M Snell Reviewed-By: Evan Lucas Reviewed-By: Michaƫl Zasso Reviewed-By: Joyee Cheung Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater --- test/addons-napi/test_exception/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(