Skip to content

Commit

Permalink
test: fix assertion arguments order
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aiden01 authored and targos committed Oct 24, 2018
1 parent f4421d1 commit fa1373f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-remove-header-stays-removed.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ const server = http.createServer(function(request, response) {
let response = '';

process.on('exit', function() {
assert.strictEqual('beep boop\n', response);
assert.strictEqual(response, 'beep boop\n');
console.log('ok');
});

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

res.setEncoding('ascii');
Expand Down

0 comments on commit fa1373f

Please sign in to comment.