Skip to content

Commit

Permalink
test: fix assert.strictEqual() argument order
Browse files Browse the repository at this point in the history
PR-URL: #23598
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
Derek authored and jasnell committed Oct 17, 2018
1 parent bcd14b2 commit 58faae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-https-eof-for-eom.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ server.listen(0, common.mustCall(function() {
server.close();
console.log('3) Client got response headers.');

assert.strictEqual('gws', res.headers.server);
assert.strictEqual(res.headers.server, 'gws');

res.setEncoding('utf8');
res.on('data', function(s) {
Expand All @@ -84,7 +84,7 @@ server.listen(0, common.mustCall(function() {

res.on('end', common.mustCall(function() {
console.log('5) Client got "end" event.');
assert.strictEqual('hello world\nhello world\n', bodyBuffer);
assert.strictEqual(bodyBuffer, 'hello world\nhello world\n');
}));
}));
}));

0 comments on commit 58faae9

Please sign in to comment.