pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/c6f166bf2166bb1ce498206258e19ca8c2afc966

r-b55097560d244c08.css" /> test: fix assert.strictEqual params order · nodejs/node@c6f166b · GitHub
Skip to content

Commit c6f166b

Browse files
rockiaMylesBorins
authored andcommitted
test: fix assert.strictEqual params order
PR-URL: #23480 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
1 parent 5432957 commit c6f166b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sequential/test-pipe.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const tcp = net.Server(common.mustCall((s) => {
7575
s.on('data', (d) => {
7676
tcpLengthSeen += d.length;
7777
for (let j = 0; j < d.length; j++) {
78-
assert.strictEqual(buffer[i], d[j]);
78+
assert.strictEqual(d[j], buffer[i]);
7979
i++;
8080
}
8181
});
@@ -103,7 +103,7 @@ function startClient() {
103103
}, common.mustCall((res) => {
104104
res.setEncoding('utf8');
105105
res.on('data', common.mustCall((string) => {
106-
assert.strictEqual('thanks', string);
106+
assert.strictEqual(string, 'thanks');
107107
gotThanks = true;
108108
}));
109109
}));
@@ -113,5 +113,5 @@ function startClient() {
113113

114114
process.on('exit', () => {
115115
assert.ok(gotThanks);
116-
assert.strictEqual(bufferSize, tcpLengthSeen);
116+
assert.strictEqual(tcpLengthSeen, bufferSize);
117117
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy