summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-agent-constructor.js
blob: 29bb9eaa98067dba41fb1057f1f7e95e7b7e5f61 (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';
const common = require('../common');
if (!common.hasCrypto)
  common.skip('missing crypto');

const assert = require('assert');
const https = require('https');

assert.doesNotThrow(() => { https.Agent(); });
assert.ok(https.Agent() instanceof https.Agent);