Skip to content

Commit

Permalink
test: change var to const in test-tls-key-mismatch.js
Browse files Browse the repository at this point in the history
PR-URL: #9897
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
bjdelro authored and MylesBorins committed Dec 21, 2016
1 parent 97a9e98 commit a20c176
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-tls-key-mismatch.js
Original file line number Diff line number Diff line change
@@ -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')
};
Expand Down

0 comments on commit a20c176

Please sign in to comment.