Skip to content

Commit

Permalink
test: simplify string concatenation
Browse files Browse the repository at this point in the history
Replace string concatenation with template literals.
Updated `test/parallel/test-http-multi-line-headers.js`

PR-URL: #14278
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: David Cai <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
jiangplus authored and Trott committed Jul 16, 2017
1 parent d4402e7 commit 32cb926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-multi-line-headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const server = net.createServer(function(conn) {
const response =
'HTTP/1.1 200 OK\r\n' +
'Connection: close\r\n' +
'Content-Length: ' + body.length + '\r\n' +
`Content-Length: ${body.length}\r\n` +
'Content-Type: text/plain;\r\n' +
' x-unix-mode=0600;\r\n' +
' name="hello.txt"\r\n' +
Expand Down

0 comments on commit 32cb926

Please sign in to comment.