Skip to content

Commit eeedd03

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 <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 6b99e55 commit eeedd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)