Skip to content

Commit 945f9d7

Browse files
fasterederjasnell
authored andcommittedOct 17, 2018
test: fix strictEqual argument order
PR-URL: #23490 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 3fc8c7a commit 945f9d7

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed
 

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

+10-6
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)
Please sign in to comment.