Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72febfd

Browse filesBrowse files
csvwolfFishrock123
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 d2121ab commit 72febfd
Copy full SHA for 72febfd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-http-extra-response.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.