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 authored and Italo A. Casas committed 2017-01-30 12:08:39 -05:00
1 parent e6b6ce429c
commit a6bd287724
732 files changed
+3390 -3371

No files matched your search

+5 -5
View File
@@ -12,23 +12,23 @@ const Buffer = require('buffer').Buffer;
const fs = require('fs');
const path = require('path');
var options = {
const options = {
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
};
var buf = Buffer.allocUnsafe(1024 * 1024);
const buf = Buffer.allocUnsafe(1024 * 1024);
var server = https.createServer(options, function(req, res) {
const server = https.createServer(options, function(req, res) {
res.writeHead(200);
for (var i = 0; i < 50; i++) {
for (let i = 0; i < 50; i++) {
res.write(buf);
}
res.end();
});
server.listen(common.PORT, function() {
var req = https.request({
const req = https.request({
method: 'POST',
port: common.PORT,
rejectUnauthorized: false