test: reduce string concatenations

PR-URL: https://github.com/nodejs/node/pull/12735
Refs: https://github.com/nodejs/node/pull/12455
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
Vse Mozhet Byt 2017-04-28 04:06:42 +03:00
parent 6bcf65d4a7
commit 8b76c3e60c
350 changed files with 1001 additions and 1075 deletions

View file

@ -35,7 +35,7 @@ function check(request) {
assert.strictEqual(request.url, '/');
// the host header should use the url.parse.hostname
assert.strictEqual(request.headers.host,
testURL.hostname + ':' + testURL.port);
`${testURL.hostname}:${testURL.port}`);
}
const server = http.createServer(function(request, response) {