From c4f21b37a17110342edd9400ebbe9497a5ca0ee3 Mon Sep 17 00:00:00 2001 From: SkyAo Date: Sun, 16 Jul 2017 16:54:05 +0800 Subject: [PATCH] test: replace concatenation with template literals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: David Cai Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Timothy Gu Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- test/parallel/test-http-extra-response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-extra-response.js b/test/parallel/test-http-extra-response.js index acd6e3288be18d..3cdc96a2d6d56b 100644 --- a/test/parallel/test-http-extra-response.js +++ b/test/parallel/test-http-extra-response.js @@ -11,7 +11,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' +