diff options
author | Elian Gutierrez <eliangu3600103@gmail.com> | 2018-10-20 11:12:46 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-22 14:32:17 -0700 |
commit | 89aa33a3e2dca665d08a7a1a6d58a0d3e1e90daa (patch) | |
tree | 6bfadcaf191337ffd8ccec4815e6a6b9741eb8b3 /test | |
parent | 90cd3dd44e164ac7670516512cc364bb2b18eb4c (diff) | |
download | android-node-v8-89aa33a3e2dca665d08a7a1a6d58a0d3e1e90daa.tar.gz android-node-v8-89aa33a3e2dca665d08a7a1a6d58a0d3e1e90daa.tar.bz2 android-node-v8-89aa33a3e2dca665d08a7a1a6d58a0d3e1e90daa.zip |
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 6617a17754..337fcd3bec 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'); |