aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http-extra-response.js
diff options
context:
space:
mode:
authorSkyAo <csvwolf@qq.com>2017-07-16 16:54:05 +0800
committerRich Trott <rtrott@gmail.com>2017-07-18 23:39:11 -0700
commitd112f5982c9bdb03c4e94262d7d64f67f58d87b2 (patch)
tree516b0dd3bd8d63aa6d437a3f3fd3a2593008ef63 /test/parallel/test-http-extra-response.js
parentb61cab2234b3d9bf7265980f9286a136af20365b (diff)
downloadandroid-node-v8-d112f5982c9bdb03c4e94262d7d64f67f58d87b2.tar.gz
android-node-v8-d112f5982c9bdb03c4e94262d7d64f67f58d87b2.tar.bz2
android-node-v8-d112f5982c9bdb03c4e94262d7d64f67f58d87b2.zip
test: replace concatenation with template literals
Use template literals instead of string concatenation in test/parallel/test-http-extra-response.js PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-http-extra-response.js')
-rw-r--r--test/parallel/test-http-extra-response.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-extra-response.js b/test/parallel/test-http-extra-response.js
index e71decb0c3..7c9514232c 100644
--- a/test/parallel/test-http-extra-response.js
+++ b/test/parallel/test-http-extra-response.js
@@ -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' +