summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-write-empty-string.js
diff options
context:
space:
mode:
authorRomain Lanz <romain.lanz@slynova.ch>2018-10-19 23:23:44 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-10-23 07:12:36 +0200
commitd901d16b395e59f3f898e1f2527cb539ca97a077 (patch)
treee21fe7d015acd6a5d10f17b7ef58ac1a819bbed7 /test/parallel/test-http-write-empty-string.js
parenta1ee86c427d53819d856cf47c1d3261754021ed9 (diff)
downloadandroid-node-v8-d901d16b395e59f3f898e1f2527cb539ca97a077.tar.gz
android-node-v8-d901d16b395e59f3f898e1f2527cb539ca97a077.tar.bz2
android-node-v8-d901d16b395e59f3f898e1f2527cb539ca97a077.zip
test: fix strictEqual() argument order
PR-URL: https://github.com/nodejs/node/pull/23768 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/parallel/test-http-write-empty-string.js')
-rw-r--r--test/parallel/test-http-write-empty-string.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-write-empty-string.js b/test/parallel/test-http-write-empty-string.js
index 35a7aca61b..d4ab070667 100644
--- a/test/parallel/test-http-write-empty-string.js
+++ b/test/parallel/test-http-write-empty-string.js
@@ -42,13 +42,13 @@ server.listen(0, common.mustCall(function() {
http.get({ port: this.address().port }, common.mustCall(function(res) {
let response = '';
- assert.strictEqual(200, res.statusCode);
+ assert.strictEqual(res.statusCode, 200);
res.setEncoding('ascii');
res.on('data', function(chunk) {
response += chunk;
});
res.on('end', common.mustCall(function() {
- assert.strictEqual('1\n2\n3\n', response);
+ assert.strictEqual(response, '1\n2\n3\n');
}));
}));
}));