Skip to content

Commit

Permalink
test: replace concatenation with template literals
Browse files Browse the repository at this point in the history
Use template literals instead of string concatenation in
test/parallel/test-http-extra-response.js

PR-URL: nodejs#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]>
  • Loading branch information
csvwolf authored and Trott committed Jul 19, 2017
1 parent b61cab2 commit d112f59
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d112f59

Please sign in to comment.