Skip to content

Commit ddd9ccf

Browse files
RomainLanztargos
authored andcommitted
test: fix strictEqual() argument order
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]>
1 parent a666d3e commit ddd9ccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-write-empty-string.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ server.listen(0, common.mustCall(function() {
4242
http.get({ port: this.address().port }, common.mustCall(function(res) {
4343
let response = '';
4444

45-
assert.strictEqual(200, res.statusCode);
45+
assert.strictEqual(res.statusCode, 200);
4646
res.setEncoding('ascii');
4747
res.on('data', function(chunk) {
4848
response += chunk;
4949
});
5050
res.on('end', common.mustCall(function() {
51-
assert.strictEqual('1\n2\n3\n', response);
51+
assert.strictEqual(response, '1\n2\n3\n');
5252
}));
5353
}));
5454
}));

0 commit comments

Comments
 (0)