diff options
author | szabolcsit <szabolcsit@hu.ibm.com> | 2018-11-06 15:33:38 +0100 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2018-11-10 09:46:09 +0530 |
commit | 26725820434c4b2d6529839459ae31fad8047a8b (patch) | |
tree | 38b230dec4f33f5c66c1539ea9b12ee497d11fc4 /test/parallel/test-http-client-upload.js | |
parent | 3b4159c8ed85b6b531b7df09378d67168574d731 (diff) | |
download | android-node-v8-26725820434c4b2d6529839459ae31fad8047a8b.tar.gz android-node-v8-26725820434c4b2d6529839459ae31fad8047a8b.tar.bz2 android-node-v8-26725820434c4b2d6529839459ae31fad8047a8b.zip |
test: fix arguments order in assert.strictEqual
In the test test/parallel/test-http-client-upload.js test the
actual and expected arguments in assert.strictEqual() calls
were in the wrong order. Switched them around so the returned
value by the function is the first argument and the literal
value is the second argument.
PR-URL: https://github.com/nodejs/node/pull/24143
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/parallel/test-http-client-upload.js')
-rw-r--r-- | test/parallel/test-http-client-upload.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-client-upload.js b/test/parallel/test-http-client-upload.js index 000bf1d584..830c37da8e 100644 --- a/test/parallel/test-http-client-upload.js +++ b/test/parallel/test-http-client-upload.js @@ -25,7 +25,7 @@ const assert = require('assert'); const http = require('http'); const server = http.createServer(common.mustCall(function(req, res) { - assert.strictEqual('POST', req.method); + assert.strictEqual(req.method, 'POST'); req.setEncoding('utf8'); let sent_body = ''; @@ -36,7 +36,7 @@ const server = http.createServer(common.mustCall(function(req, res) { }); req.on('end', common.mustCall(function() { - assert.strictEqual('1\n2\n3\n', sent_body); + assert.strictEqual(sent_body, '1\n2\n3\n'); console.log('request complete from server'); res.writeHead(200, { 'Content-Type': 'text/plain' }); res.write('hello\n'); |