mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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:
parent
6bcf65d4a7
commit
8b76c3e60c
350 changed files with 1001 additions and 1075 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue