Skip to content

Commit

Permalink
test: fix parameter order passed to strictEqual
Browse files Browse the repository at this point in the history
strictEqual() expects the first argument to be the actual value and the
second argument to be the expected value. This fix will correctly label
the AssertionError.:

PR-URL: #23577
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Hitesh Kanwathirtha <digitalinfinity@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
shannonfarvolden authored and jasnell committed Oct 17, 2018
1 parent 0579784 commit a0468fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sequential/test-inspector-break-e.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function runTests() {
]);
await session.waitForBreakOnLine(2, '[eval]');
await session.runToCompletion();
assert.strictEqual(0, (await instance.expectShutdown()).exitCode);
assert.strictEqual((await instance.expectShutdown()).exitCode, 0);
}

runTests();

0 comments on commit a0468fe

Please sign in to comment.