From 7e56801ddd2c3ac698437787a77c14669ebce3c5 Mon Sep 17 00:00:00 2001 From: Carl Richmond Date: Fri, 12 Oct 2018 10:03:58 -0700 Subject: [PATCH] test: fix assertion argument order PR-URL: https://github.com/nodejs/node/pull/23489 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- test/parallel/test-http-set-cookies.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-http-set-cookies.js b/test/parallel/test-http-set-cookies.js index c307bda73a3515..7a57523b04af9c 100644 --- a/test/parallel/test-http-set-cookies.js +++ b/test/parallel/test-http-set-cookies.js @@ -47,8 +47,8 @@ server.on('listening', function() { http.get({ port: this.address().port, path: '/one' }, function(res) { // set-cookie headers are always return in an array. // even if there is only one. - assert.deepStrictEqual(['A'], res.headers['set-cookie']); - assert.strictEqual('text/plain', res.headers['content-type']); + assert.deepStrictEqual(res.headers['set-cookie'], ['A']); + assert.strictEqual(res.headers['content-type'], 'text/plain'); res.on('data', function(chunk) { console.log(chunk.toString()); @@ -62,8 +62,8 @@ server.on('listening', function() { // two set-cookie headers http.get({ port: this.address().port, path: '/two' }, function(res) { - assert.deepStrictEqual(['A', 'B'], res.headers['set-cookie']); - assert.strictEqual('text/plain', res.headers['content-type']); + assert.deepStrictEqual(res.headers['set-cookie'], ['A', 'B']); + assert.strictEqual(res.headers['content-type'], 'text/plain'); res.on('data', function(chunk) { console.log(chunk.toString());