mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -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
1d6dd961ef
commit
52c9209f1c
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