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: nodejs#23577
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
shannonfarvolden authored and Trott committed Oct 13, 2018
1 parent 6cd5c74 commit c1288fe
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 c1288fe

Please sign in to comment.