test: fix style issues after eslint update

Replace var keyword with const or let.

PR-URL: https://github.com/nodejs/io.js/pull/2286
Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
Michaël Zasso authored and Myles Borins committed 2016-02-15 11:30:23 -08:00
1 parent 066d5e7da2
commit 607f545568
109 files changed
+934 -887

No files matched your search

+6 -6
View File
@@ -8,12 +8,12 @@ if (!common.hasCrypto) {
}
var https = require('https');
var fs = require('fs'),
options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
},
httpsServer = https.createServer(options, reqHandler);
const fs = require('fs');
const options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
};
const httpsServer = https.createServer(options, reqHandler);
function reqHandler(req, res) {
console.log('Got request: ' + req.headers.host + ' ' + req.url);