Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4116788

Browse filesBrowse files
Aiden01MylesBorins
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 30bcddc commit 4116788
Copy full SHA for 4116788

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-http-remove-header-stays-removed.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.