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 fd12699

Browse filesBrowse files
RomainLanzMylesBorins
authored andcommitted
test: fix strictEqual() argument order
PR-URL: #23768 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 6ee9273 commit fd12699
Copy full SHA for fd12699

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-write-empty-string.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-write-empty-string.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ server.listen(0, common.mustCall(function() {
4242
http.get({ port: this.address().port }, common.mustCall(function(res) {
4343
let response = '';
4444

45-
assert.strictEqual(200, res.statusCode);
45+
assert.strictEqual(res.statusCode, 200);
4646
res.setEncoding('ascii');
4747
res.on('data', function(chunk) {
4848
response += chunk;
4949
});
5050
res.on('end', common.mustCall(function() {
51-
assert.strictEqual('1\n2\n3\n', response);
51+
assert.strictEqual(response, '1\n2\n3\n');
5252
}));
5353
}));
5454
}));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.