mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: fix strictEqual() argument order
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
a1ee86c427
commit
d901d16b39
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}));
|
||||
}));
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue