diff options
author | Evgenii Shchepotev <evgenii.schepotiev@gmail.com> | 2019-05-26 17:54:40 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-05-31 08:46:55 +0200 |
commit | 682319f4491e774cde129203875b71d239228a4c (patch) | |
tree | c3d3e16cf8d6b197e1496f8a82824bfeacb6f12f /test/sequential | |
parent | 449ee8dd4284af344fe44f1fd5d98b6281368f46 (diff) | |
download | node-new-682319f4491e774cde129203875b71d239228a4c.tar.gz |
test: switch assertEqual arguments
PR-URL: https://github.com/nodejs/node/pull/27910
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/sequential')
-rw-r--r-- | test/sequential/test-inspector-debug-end.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-inspector-debug-end.js b/test/sequential/test-inspector-debug-end.js index d73e7dccc1..4c775981f1 100644 --- a/test/sequential/test-inspector-debug-end.js +++ b/test/sequential/test-inspector-debug-end.js @@ -10,14 +10,14 @@ async function testNoServerNoCrash() { const instance = new NodeInstance([], `process._debugEnd(); process.exit(42);`); - strictEqual(42, (await instance.expectShutdown()).exitCode); + strictEqual((await instance.expectShutdown()).exitCode, 42); } async function testNoSessionNoCrash() { console.log('Test there\'s no crash stopping server without connecting'); const instance = new NodeInstance('--inspect=0', 'process._debugEnd();process.exit(42);'); - strictEqual(42, (await instance.expectShutdown()).exitCode); + strictEqual((await instance.expectShutdown()).exitCode, 42); } async function testSessionNoCrash() { @@ -33,7 +33,7 @@ async function testSessionNoCrash() { const session = await instance.connectInspectorSession(); await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' }); await session.waitForServerDisconnect(); - strictEqual(42, (await instance.expectShutdown()).exitCode); + strictEqual((await instance.expectShutdown()).exitCode, 42); } async function runTest() { |