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 jasnell committed Oct 17, 2018
1 parent 5bc49f9 commit bb8dd48
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 bb8dd48

Please sign in to comment.