Permalink
Browse files

test: replace concatenation with template literal

PR-URL: #14284
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information...
HSUCHING authored and Trott committed Jul 16, 2017
1 parent 85939bd commit 66a6a15561e50cfc61a101cbe226a476919ef5b3
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/parallel/test-http-upgrade-client2.js
@@ -27,9 +27,10 @@ const CRLF = '\r\n';
const server = http.createServer();
server.on('upgrade', function(req, socket, head) {
socket.write('HTTP/1.1 101 Ok' + CRLF +
'Connection: Upgrade' + CRLF +
'Upgrade: Test' + CRLF + CRLF + 'head');
socket.write(`HTTP/1.1 101 Ok${CRLF}` +
`Connection: Upgrade${CRLF}` +
`Upgrade: Test${CRLF}${CRLF}` +
'head');
socket.on('end', function() {
socket.end();
});

0 comments on commit 66a6a15

Please sign in to comment.