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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
RomainLanz authored and MylesBorins committed Nov 26, 2018
1 parent 6ee9273 commit fd12699
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 fd12699

Please sign in to comment.