Skip to content

Commit fa1373f

Browse files
Aiden01targos
authored andcommitted
test: fix assertion arguments order
PR-URL: #23787 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent f4421d1 commit fa1373f

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)