From 776cfc5898ee976c9cbe19573f379b9a27526872 Mon Sep 17 00:00:00 2001 From: bjdelro Date: Thu, 1 Dec 2016 10:17:17 -0600 Subject: [PATCH] test: change var to const in test-tls-key-mismatch.js PR-URL: https://github.com/nodejs/node/pull/9897 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-tls-key-mismatch.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-tls-key-mismatch.js b/test/parallel/test-tls-key-mismatch.js index f0eb8121bd68e5..65cac6f07a296c 100644 --- a/test/parallel/test-tls-key-mismatch.js +++ b/test/parallel/test-tls-key-mismatch.js @@ -1,15 +1,15 @@ 'use strict'; -var common = require('../common'); -var assert = require('assert'); +const common = require('../common'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } -var tls = require('tls'); -var fs = require('fs'); +const assert = require('assert'); +const tls = require('tls'); +const fs = require('fs'); -var options = { +const options = { key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'), cert: fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem') };