Skip to content

Commit

Permalink
test: fix ordering of assertion values
Browse files Browse the repository at this point in the history
  • Loading branch information
maccuaa authored and MylesBorins committed Nov 29, 2018
1 parent 894fe38 commit c1b7523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/addons-napi/test_general/testInstanceOf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1b7523

Please sign in to comment.