mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
test: switch arguments of assert()
The arguments of the assert were passed in the wrong order (expected, actual). This would have been confusing in case of an error. Changed it to be (actual, expected) PR-URL: https://github.com/nodejs/node/pull/23524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
32cef50c99
commit
d5abbabc4f
@ -63,7 +63,7 @@ async function runTests() {
|
||||
await breakOnLine(session);
|
||||
await stepOverConsoleStatement(session);
|
||||
await session.runToCompletion();
|
||||
assert.strictEqual(0, (await child.expectShutdown()).exitCode);
|
||||
assert.strictEqual((await child.expectShutdown()).exitCode, 0);
|
||||
}
|
||||
|
||||
runTests();
|
||||
|
Loading…
Reference in New Issue
Block a user