Skip to content

Commit

Permalink
test: use const and changed port to 443
Browse files Browse the repository at this point in the history
  • Loading branch information
suryagh committed May 15, 2016
1 parent f62d843 commit 2084001
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/parallel/test-https-agent-getname.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';

require('../common');
var assert = require('assert');
var https = require('https');
const assert = require('assert');
const https = require('https');

var agent = new https.Agent();
const agent = new https.Agent();

// empty options
assert.strictEqual(
Expand All @@ -13,9 +13,9 @@ assert.strictEqual(
);

// pass all options arguments
var options = {
const options = {
host: '0.0.0.0',
port: 80,
port: 443,
localAddress: '192.168.1.1',
ca: 'ca',
cert: 'cert',
Expand All @@ -28,5 +28,5 @@ var options = {

assert.strictEqual(
agent.getName(options),
'0.0.0.0:80:192.168.1.1:ca:cert:ciphers:key:pfx:false:localhost'
'0.0.0.0:443:192.168.1.1:ca:cert:ciphers:key:pfx:false:localhost'
);

0 comments on commit 2084001

Please sign in to comment.