test-https-argument-of-creating.js
Imports Node.js common test helperimports https
SHA-256f79ecfaf415e8f0640fb65f46a38ac304bd3994e4c93c19b9e6dcc11ae212a9d
MaleculeMd₂(In₃Pa)
Evidence
1'use strict';
2
3const common = require('../common');
4if (!common.hasCrypto)
5 common.skip('missing crypto');
6
7const assert = require('assert');
8const https = require('https');
9const tls = require('tls');
10
11const dftProtocol = {};
12
13// Test for immutable `opts`
14{
15 const opts = common.mustNotMutateObjectDeep({
16 foo: 'bar',
17 ALPNProt …
⋯4 lines
25
26
27// Validate that `createServer` can work with the only argument requestListener
28{
29 const mustNotCall = common.mustNotCall();
30 const server = ht …