test: use eslint to fix var->const/let

Manually fix issues that eslint --fix couldn't do automatically.

PR-URL: https://github.com/nodejs/node/pull/10685
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
Gibson Fahnestock 2017-01-08 13:19:00 +00:00
parent 1ef401ce92
commit 7a0e462f9f
730 changed files with 3387 additions and 3368 deletions

View file

@ -9,7 +9,7 @@ function check(request) {
assert.strictEqual(request.headers.authorization, 'Basic dXNlcjpwYXNzOg==');
}
var server = http.createServer(function(request, response) {
const server = http.createServer(function(request, response) {
// run the check function
check.call(this, request, response);
response.writeHead(200, {});
@ -20,7 +20,7 @@ var server = http.createServer(function(request, response) {
server.listen(0, function() {
const port = this.address().port;
// username = "user", password = "pass:"
var testURL = url.parse(`http://user:pass%3A@localhost:${port}`);
const testURL = url.parse(`http://user:pass%3A@localhost:${port}`);
// make the request
http.request(testURL).end();