Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorElian Gutierrez <eliangu3600103@gmail.com>2018-10-20 18:12:46 +0300
committerMyles Borins <mylesborins@google.com>2018-11-29 19:39:06 +0300
commitcc040f6887169751b67460ea68de225ad1b81d12 (patch)
treec1cf5f61bc15e761a9b8d7034728dfabfcb3e23d /test
parent2a2882b470a4bc32ea2f67a0b8baefa19e1d3c0f (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.js4
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');