mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
test: fix strictEqual arguments order
PR-URL: https://github.com/nodejs/node/pull/23956 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
1 parent
a6e836a657
commit
4f5be97e8d
1 file changed
+2
-2
@@ -25,7 +25,7 @@ server.listen(0, common.mustCall(function() {
|
||||
let res = '';
|
||||
|
||||
req.on('response', common.mustCall(function(headers) {
|
||||
assert.strictEqual(200, headers[':status']);
|
||||
assert.strictEqual(headers[':status'], 200);
|
||||
}));
|
||||
|
||||
req.on('data', (chunk) => {
|
||||
@@ -33,7 +33,7 @@ server.listen(0, common.mustCall(function() {
|
||||
});
|
||||
|
||||
req.on('end', common.mustCall(function() {
|
||||
assert.strictEqual('1\n2\n3\n', res);
|
||||
assert.strictEqual(res, '1\n2\n3\n');
|
||||
client.close();
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user