Skip to content

Commit

Permalink
test: fix strictEqual arguments order
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
Westixy authored and targos committed Nov 2, 2018
1 parent dccf4a6 commit 63778b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-write-empty-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ 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) => {
res += chunk;
});

req.on('end', common.mustCall(function() {
assert.strictEqual('1\n2\n3\n', res);
assert.strictEqual(res, '1\n2\n3\n');
client.close();
}));

Expand Down

0 comments on commit 63778b7

Please sign in to comment.