From a15bfdad789246e479487857604a514b8a22745d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 13 Sep 2018 13:59:13 -0700 Subject: [PATCH] test: remove string literal message from assertion Remove string literal message in assert.strictEqual() call in napi test testFinalizer.js. Backport-PR-URL: https://github.com/nodejs/node/pull/22912 PR-URL: https://github.com/nodejs/node/pull/22849 Reviewed-By: Teddy Katz Reviewed-By: Matteo Collina Reviewed-By: Anna Henningsen Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- test/addons-napi/test_general/testFinalizer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/addons-napi/test_general/testFinalizer.js b/test/addons-napi/test_general/testFinalizer.js index d5df4c8c724f98..b440ed5e501ad8 100644 --- a/test/addons-napi/test_general/testFinalizer.js +++ b/test/addons-napi/test_general/testFinalizer.js @@ -29,5 +29,4 @@ test_general.wrap(finalizeAndWrap); test_general.addFinalizerOnly(finalizeAndWrap, common.mustCall()); finalizeAndWrap = null; global.gc(); -assert.strictEqual(test_general.derefItemWasCalled(), true, - 'finalize callback was called'); +assert.strictEqual(test_general.derefItemWasCalled(), true);