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 8e69895

Browse filesBrowse files
ssamuels0916MylesBorins
authored andcommitted
test: fix assert.strictEqual() argument order
PR-URL: #23529 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 93af93a commit 8e69895
Copy full SHA for 8e69895

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-http-buffer-sanity.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-buffer-sanity.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const server = http.Server(function(req, res) {
4040
req.on('data', (d) => {
4141
measuredSize += d.length;
4242
for (let j = 0; j < d.length; j++) {
43-
assert.strictEqual(buffer[i], d[j]);
43+
assert.strictEqual(d[j], buffer[i]);
4444
i++;
4545
}
4646
});
4747

4848
req.on('end', common.mustCall(() => {
49-
assert.strictEqual(bufferSize, measuredSize);
49+
assert.strictEqual(measuredSize, bufferSize);
5050
res.writeHead(200);
5151
res.write('thanks');
5252
res.end();
@@ -64,7 +64,7 @@ server.listen(0, common.mustCall(() => {
6464
let data = '';
6565
res.on('data', (chunk) => data += chunk);
6666
res.on('end', common.mustCall(() => {
67-
assert.strictEqual('thanks', data);
67+
assert.strictEqual(data, 'thanks');
6868
}));
6969
}));
7070
req.end(buffer);

0 commit comments

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