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 01d599c

Browse filesBrowse files
fasterederMylesBorins
authored andcommitted
test: fix strictEqual argument order
PR-URL: #23490 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 58aaa61 commit 01d599c
Copy full SHA for 01d599c

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+10
-6
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-http-status-message.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-status-message.js
+10-6Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,22 @@ const s = http.createServer(function(req, res) {
3333

3434
s.listen(0, test);
3535

36-
3736
function test() {
3837
const bufs = [];
39-
const client = net.connect(this.address().port, function() {
40-
client.write('GET / HTTP/1.1\r\nConnection: close\r\n\r\n');
41-
});
38+
const client = net.connect(
39+
this.address().port,
40+
function() {
41+
client.write('GET / HTTP/1.1\r\nConnection: close\r\n\r\n');
42+
}
43+
);
4244
client.on('data', function(chunk) {
4345
bufs.push(chunk);
4446
});
4547
client.on('end', function() {
46-
const head = Buffer.concat(bufs).toString('latin1').split('\r\n')[0];
47-
assert.strictEqual('HTTP/1.1 200 Custom Message', head);
48+
const head = Buffer.concat(bufs)
49+
.toString('latin1')
50+
.split('\r\n')[0];
51+
assert.strictEqual(head, 'HTTP/1.1 200 Custom Message');
4852
console.log('ok');
4953
s.close();
5054
});

0 commit comments

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