We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf31eb7 commit a05fe5fCopy full SHA for a05fe5f
test/parallel/test-tls-connect-no-host.js
@@ -1,17 +1,16 @@
1
'use strict';
2
const common = require('../common');
3
+const fixtures = require('../common/fixtures');
4
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
8
const tls = require('tls');
9
10
const assert = require('assert');
-const fs = require('fs');
11
-const path = require('path');
12
13
-const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'));
14
-const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'));
+const cert = fixtures.readSync('test_cert.pem');
+const key = fixtures.readSync('test_key.pem');
15
16
// https://github.com/nodejs/node/issues/1489
17
// tls.connect(options) with no options.host should accept a cert with
0 commit comments