Skip to content

Commit 20455c1

Browse files
shannonfarvoldenaddaleax
authored andcommitted
test: fix parameter order passed to strictEqual
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>
1 parent 61cb4cf commit 20455c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/sequential/test-inspector-break-e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function runTests() {
1717
]);
1818
await session.waitForBreakOnLine(0, '[eval]');
1919
await session.runToCompletion();
20-
assert.strictEqual(0, (await instance.expectShutdown()).exitCode);
20+
assert.strictEqual((await instance.expectShutdown()).exitCode, 0);
2121
}
2222

2323
runTests();

0 commit comments

Comments
 (0)