Skip to content

Commit 25a5bf0

Browse files
delaguilaluisMylesBorins
authored andcommitted
test: remove common.fixturesDir
Replace `common.fixturesDir` with usage of the `common.fixtures` module PR-URL: #15950 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 51d87e3 commit 25a5bf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-dsa-fips-invalid-key.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
4+
35
if (!common.hasFipsCrypto)
46
common.skip('node compiled without FIPS OpenSSL.');
57

68
const assert = require('assert');
79
const crypto = require('crypto');
8-
const fs = require('fs');
910

1011
const input = 'hello';
1112

12-
const dsapri = fs.readFileSync(
13-
`${common.fixturesDir}/keys/dsa_private_1025.pem`);
13+
const dsapri = fixtures.readKey('dsa_private_1025.pem');
1414
const sign = crypto.createSign('SHA1');
1515
sign.update(input);
1616

0 commit comments

Comments
 (0)