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:
Esteban Sotillo 2018-10-29 15:22:43 +01:00 committed by Rich Trott
parent a6e836a657
commit 4f5be97e8d

View File

@ -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();
}));