Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: replace with template literals
use template literals instead of string concatenation in test/parallel/test-http-extra-response.js
  • Loading branch information
csvwolf committed Jul 16, 2017
commit 4a9925e4c8a0a3dedef3f1ee883b2031d1aeefd2
2 changes: 1 addition & 1 deletion test/parallel/test-http-extra-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const net = require('net');
const body = 'hello world\r\n';
const fullResponse =
'HTTP/1.1 500 Internal Server Error\r\n' +
'Content-Length: ' + body.length + '\r\n' +
`Content-Length: ${body.length}\r\n` +
'Content-Type: text/plain\r\n' +
'Date: Fri + 18 Feb 2011 06:22:45 GMT\r\n' +
'Host: 10.20.149.2\r\n' +
Expand Down