From d156d093ff713b2c2b69c9c82205ce8e37bfb4bf Mon Sep 17 00:00:00 2001 From: Andrew MacCuaig Date: Fri, 12 Oct 2018 10:02:17 -0700 Subject: [PATCH] test: fix ordering of assertion values --- test/addons-napi/test_general/testInstanceOf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/addons-napi/test_general/testInstanceOf.js b/test/addons-napi/test_general/testInstanceOf.js index 3b37188ab4d20c..53455a0025a0e2 100644 --- a/test/addons-napi/test_general/testInstanceOf.js +++ b/test/addons-napi/test_general/testInstanceOf.js @@ -18,12 +18,12 @@ const v8TestsDirExists = fs.existsSync(v8TestsDir); // See for instance deps/v8/test/mjsunit/instanceof.js // eslint-disable-next-line no-unused-vars function assertTrue(assertion) { - return assert.strictEqual(true, assertion); + return assert.strictEqual(assertion, true); } // eslint-disable-next-line no-unused-vars function assertFalse(assertion) { - assert.strictEqual(false, assertion); + assert.strictEqual(assertion, false); } // eslint-disable-next-line no-unused-vars