Skip to content

Commit 14aee78

Browse files
JamesMGreeneMylesBorins
authored andcommitted
test: update 'fixturesDir' refs in a test file
This was a task from Code & Learn at NINA17. PR-URL: #15824 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent e1c45ef commit 14aee78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-http-url.parse-https.request.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
const common = require('../common');
33
if (!common.hasCrypto)
44
common.skip('missing crypto');
5+
const { readKey } = require('../common/fixtures');
56

67
const assert = require('assert');
78
const https = require('https');
89
const url = require('url');
9-
const fs = require('fs');
1010

1111
// https options
1212
const httpsOptions = {
13-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
14-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
13+
key: readKey('agent1-key.pem'),
14+
cert: readKey('agent1-cert.pem')
1515
};
1616

1717
function check(request) {

0 commit comments

Comments
 (0)