diff options
author | Esteban Sotillo <westixy@gmail.com> | 2018-10-29 15:22:43 +0100 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2018-11-28 11:26:49 +1100 |
commit | d34ade875595caa8be42d0cbfdd02659b0748760 (patch) | |
tree | 0dc7dad7d5bfc3df15fbb3dc37b5894d10b772b3 /test/parallel | |
parent | 6ae07a9248344cdd08be848a357ca192b53108c5 (diff) | |
download | node-new-d34ade875595caa8be42d0cbfdd02659b0748760.tar.gz |
test: fix strictEqual arguments order
PR-URL: https://github.com/nodejs/node/pull/23956
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-http2-write-empty-string.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http2-write-empty-string.js b/test/parallel/test-http2-write-empty-string.js index 6e6ce5254d..ea591176a4 100644 --- a/test/parallel/test-http2-write-empty-string.js +++ b/test/parallel/test-http2-write-empty-string.js @@ -25,7 +25,7 @@ server.listen(0, common.mustCall(function() { let res = ''; req.on('response', common.mustCall(function(headers) { - assert.strictEqual(200, headers[':status']); + assert.strictEqual(headers[':status'], 200); })); req.on('data', (chunk) => { @@ -33,7 +33,7 @@ server.listen(0, common.mustCall(function() { }); req.on('end', common.mustCall(function() { - assert.strictEqual('1\n2\n3\n', res); + assert.strictEqual(res, '1\n2\n3\n'); client.close(); })); |