Skip to content

Commit

Permalink
test: fix assertion argument order
Browse files Browse the repository at this point in the history
PR-URL: #23489
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
carlrc authored and MylesBorins committed Nov 29, 2018
1 parent 33cf3b2 commit 01bfb22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-http-set-cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down

0 comments on commit 01bfb22

Please sign in to comment.