From 5f4bc598009dea7c4452aca22965aa5f09209ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Barbieri?= Date: Sat, 17 Sep 2016 12:49:54 +0200 Subject: [PATCH] test: replace var by const test-tls-zero-clear-in PR-URL: https://github.com/nodejs/node/pull/8621 Reviewed-By: Colin Ihrig Reviewed-By: Ilkka Myller --- test/parallel/test-tls-zero-clear-in.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-tls-zero-clear-in.js b/test/parallel/test-tls-zero-clear-in.js index 97dd27de11e..23542888c3d 100644 --- a/test/parallel/test-tls-zero-clear-in.js +++ b/test/parallel/test-tls-zero-clear-in.js @@ -1,19 +1,19 @@ 'use strict'; -var common = require('../common'); +const common = require('../common'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } -var tls = require('tls'); +const tls = require('tls'); -var fs = require('fs'); -var path = require('path'); +const fs = require('fs'); +const path = require('path'); -var cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); -var key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); +const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); +const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); -var server = tls.createServer({ +const server = tls.createServer({ cert: cert, key: key }, function(c) { @@ -23,7 +23,7 @@ var server = tls.createServer({ server.close(); }, 20); }).listen(0, common.mustCall(function() { - var conn = tls.connect({ + const conn = tls.connect({ cert: cert, key: key, rejectUnauthorized: false,