diff options
author | Elian Gutierrez <eliangu3600103@gmail.com> | 2018-10-20 18:12:46 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-11-29 19:39:06 +0300 |
commit | cc040f6887169751b67460ea68de225ad1b81d12 (patch) | |
tree | c1cf5f61bc15e761a9b8d7034728dfabfcb3e23d /test | |
parent | 2a2882b470a4bc32ea2f67a0b8baefa19e1d3c0f (diff) |
test: fix assertion arguments order
PR-URL: https://github.com/nodejs/node/pull/23787
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-http-remove-header-stays-removed.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-remove-header-stays-removed.js b/test/parallel/test-http-remove-header-stays-removed.js index 6617a177544..337fcd3becd 100644 --- a/test/parallel/test-http-remove-header-stays-removed.js +++ b/test/parallel/test-http-remove-header-stays-removed.js @@ -44,13 +44,13 @@ const server = http.createServer(function(request, response) { let response = ''; process.on('exit', function() { - assert.strictEqual('beep boop\n', response); + assert.strictEqual(response, 'beep boop\n'); console.log('ok'); }); server.listen(0, function() { http.get({ port: this.address().port }, function(res) { - assert.strictEqual(200, res.statusCode); + assert.strictEqual(res.statusCode, 200); assert.deepStrictEqual(res.headers, { date: 'coffee o clock' }); res.setEncoding('ascii'); |