Skip to content

Commit 4a9925e

Browse files
committed
test: replace with template literals
use template literals instead of string concatenation in test/parallel/test-http-extra-response.js
1 parent 5d3609d commit 4a9925e

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
@@ -32,7 +32,7 @@ const net = require('net');
3232
const body = 'hello world\r\n';
3333
const fullResponse =
3434
'HTTP/1.1 500 Internal Server Error\r\n' +
35-
'Content-Length: ' + body.length + '\r\n' +
35+
`Content-Length: ${body.length}\r\n` +
3636
'Content-Type: text/plain\r\n' +
3737
'Date: Fri + 18 Feb 2011 06:22:45 GMT\r\n' +
3838
'Host: 10.20.149.2\r\n' +

0 commit comments

Comments
 (0)