mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
f55b4f1cdf
commit
3adfe99e5c
1 file changed
+1
-1
@@ -17,7 +17,7 @@ async function runTests() {
|
||||
]);
|
||||
await session.waitForBreakOnLine(0, '[eval]');
|
||||
await session.runToCompletion();
|
||||
assert.strictEqual(0, (await instance.expectShutdown()).exitCode);
|
||||
assert.strictEqual((await instance.expectShutdown()).exitCode, 0);
|
||||
}
|
||||
|
||||
runTests();
|
||||
Reference in new issue
Block a user