Skip to content

Commit c4f21b3

Browse files
csvwolfMylesBorins
authored andcommitted
test: replace concatenation with template literals
Use template literals instead of string concatenation in test/parallel/test-http-extra-response.js PR-URL: #14296 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: David Cai <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d7afa17 commit c4f21b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http-extra-response.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const net = require('net');
1111
const body = 'hello world\r\n';
1212
const fullResponse =
1313
'HTTP/1.1 500 Internal Server Error\r\n' +
14-
'Content-Length: ' + body.length + '\r\n' +
14+
`Content-Length: ${body.length}\r\n` +
1515
'Content-Type: text/plain\r\n' +
1616
'Date: Fri + 18 Feb 2011 06:22:45 GMT\r\n' +
1717
'Host: 10.20.149.2\r\n' +

0 commit comments

Comments
 (0)