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
|
@ -2,10 +2,10 @@
|
|||
const common = require('../common');
|
||||
const http = require('http');
|
||||
|
||||
var body = 'hello world\n';
|
||||
const body = 'hello world\n';
|
||||
|
||||
function test(headers) {
|
||||
var server = http.createServer(function(req, res) {
|
||||
const server = http.createServer(function(req, res) {
|
||||
console.error('req: %s headers: %j', req.method, headers);
|
||||
res.writeHead(200, headers);
|
||||
res.end();
|
||||
|
@ -13,7 +13,7 @@ function test(headers) {
|
|||
});
|
||||
|
||||
server.listen(0, common.mustCall(function() {
|
||||
var request = http.request({
|
||||
const request = http.request({
|
||||
port: this.address().port,
|
||||
method: 'HEAD',
|
||||
path: '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue