Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: use const and changed port to 443
  • Loading branch information
suryagh committed May 15, 2016
commit 2084001102a606a974621f3ccdf0c167beae4351
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'
);