Skip to content

Commit 6420a73

Browse files
HSUCHINGaddaleax
authored andcommitted
test: replace concatenation with template literal
PR-URL: #14284 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent cd0fffd commit 6420a73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-http-upgrade-client2.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ const CRLF = '\r\n';
2727

2828
const server = http.createServer();
2929
server.on('upgrade', function(req, socket, head) {
30-
socket.write('HTTP/1.1 101 Ok' + CRLF +
31-
'Connection: Upgrade' + CRLF +
32-
'Upgrade: Test' + CRLF + CRLF + 'head');
30+
socket.write(`HTTP/1.1 101 Ok${CRLF}` +
31+
`Connection: Upgrade${CRLF}` +
32+
`Upgrade: Test${CRLF}${CRLF}` +
33+
'head');
3334
socket.on('end', function() {
3435
socket.end();
3536
});

0 commit comments

Comments
 (0)