diff options
author | Illescas, Ricardo <rillescas@paypal.com> | 2018-10-12 11:19:56 -0600 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-10-15 15:33:11 +0200 |
commit | c8986bb7a3cccd0df2269cf7d3f84ab9776e980d (patch) | |
tree | 30526ed3679baafd14a4a0a5cd0204af6a5bf6f0 /test/parallel/test-child-process-ipc.js | |
parent | 134389142edbe09f8881338ee738b6b93a3ec5e0 (diff) | |
download | android-node-v8-c8986bb7a3cccd0df2269cf7d3f84ab9776e980d.tar.gz android-node-v8-c8986bb7a3cccd0df2269cf7d3f84ab9776e980d.tar.bz2 android-node-v8-c8986bb7a3cccd0df2269cf7d3f84ab9776e980d.zip |
test: fix argument order in assertions
PR-URL: https://github.com/nodejs/node/pull/23589
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-child-process-ipc.js')
-rw-r--r-- | test/parallel/test-child-process-ipc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-child-process-ipc.js b/test/parallel/test-child-process-ipc.js index 36293cb73c..f1652a91e6 100644 --- a/test/parallel/test-child-process-ipc.js +++ b/test/parallel/test-child-process-ipc.js @@ -44,13 +44,13 @@ child.stdout.on('data', function(data) { console.log(`child said: ${JSON.stringify(data)}`); if (!gotHelloWorld) { console.error('testing for hello world'); - assert.strictEqual('hello world\r\n', data); + assert.strictEqual(data, 'hello world\r\n'); gotHelloWorld = true; console.error('writing echo me'); child.stdin.write('echo me\r\n'); } else { console.error('testing for echo me'); - assert.strictEqual('echo me\r\n', data); + assert.strictEqual(data, 'echo me\r\n'); gotEcho = true; child.stdin.end(); } |