node/test/internet/test-http-https-default-ports.js
cjihrig ff1efa6087 test: use const for all require() calls
PR-URL: https://github.com/nodejs/node/pull/10550
Reviewed-By: Rich Trott <rtrott@gmail.com>
2017-01-02 18:28:18 -05:00

19 lines
365 B
JavaScript

'use strict';
const common = require('../common');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
const https = require('https');
const http = require('http');
https.get('https://www.google.com/', common.mustCall(function(res) {
res.resume();
}));
http.get('http://www.google.com/', common.mustCall(function(res) {
res.resume();
}));