Skip to content

Commit 544e64d

Browse files
Aiden01rvagg
authored andcommitted
test: fix assertion arguments order
PR-URL: #23787 Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent e2d2ce6 commit 544e64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-remove-header-stays-removed.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ const server = http.createServer(function(request, response) {
4444
let response = '';
4545

4646
process.on('exit', function() {
47-
assert.strictEqual('beep boop\n', response);
47+
assert.strictEqual(response, 'beep boop\n');
4848
console.log('ok');
4949
});
5050

5151
server.listen(0, function() {
5252
http.get({ port: this.address().port }, function(res) {
53-
assert.strictEqual(200, res.statusCode);
53+
assert.strictEqual(res.statusCode, 200);
5454
assert.deepStrictEqual(res.headers, { date: 'coffee o clock' });
5555

5656
res.setEncoding('ascii');

0 commit comments

Comments
 (0)