mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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:
parent
1ef401ce92
commit
7a0e462f9f
730 changed files with 3387 additions and 3368 deletions
|
@ -4,7 +4,7 @@ const assert = require('assert');
|
|||
|
||||
const http = require('http');
|
||||
|
||||
var server = http.createServer(function(request, response) {
|
||||
const server = http.createServer(function(request, response) {
|
||||
console.log('responding to ' + request.url);
|
||||
|
||||
response.writeHead(200, {'Content-Type': 'text/plain'});
|
||||
|
@ -19,7 +19,7 @@ var server = http.createServer(function(request, response) {
|
|||
|
||||
server.listen(0, common.mustCall(function() {
|
||||
http.get({ port: this.address().port }, common.mustCall(function(res) {
|
||||
var response = '';
|
||||
let response = '';
|
||||
|
||||
assert.equal(200, res.statusCode);
|
||||
res.setEncoding('ascii');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue