Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix strictEqual() argument order
  • Loading branch information
RomainLanz committed Oct 19, 2018
commit 5a21353d73fb2cac4d2bf5b64b2b331edfad981d
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');
}));
}));
}));