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 29, 2018
1 parent 3d43679 commit 874d023
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 874d023

Please sign in to comment.