Skip to content

Commit

Permalink
test: fix strictEqual() argument order
Browse files Browse the repository at this point in the history
PR-URL: #23768
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
RomainLanz authored and rvagg committed Nov 28, 2018
1 parent 0f98c49 commit ac91346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-write-empty-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ server.listen(0, common.mustCall(function() {
http.get({ port: this.address().port }, common.mustCall(function(res) {
let response = '';

assert.strictEqual(200, res.statusCode);
assert.strictEqual(res.statusCode, 200);
res.setEncoding('ascii');
res.on('data', function(chunk) {
response += chunk;
});
res.on('end', common.mustCall(function() {
assert.strictEqual('1\n2\n3\n', response);
assert.strictEqual(response, '1\n2\n3\n');
}));
}));
}));

0 comments on commit ac91346

Please sign in to comment.