mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
test: fix assertion argument order
Fix the assertion argument order so that it will report "actual" and "expected" correctly when the test fails. Ref: https://github.com/nodejs/node/issues/19263 PR-URL: https://github.com/nodejs/node/pull/19264 Refs: https://github.com/nodejs/node/issues/19263 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
f679ac19e0
commit
f84f548986
|
|
@ -25,7 +25,7 @@ async function runTests() {
|
|||
'Waiting for the debugger to disconnect...');
|
||||
await session.send({ method: 'Profiler.stop' });
|
||||
session.disconnect();
|
||||
assert.strictEqual(0, (await child.expectShutdown()).exitCode);
|
||||
assert.strictEqual((await child.expectShutdown()).exitCode, 0);
|
||||
}
|
||||
|
||||
common.crashOnUnhandledRejection();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user