test: remove common.fixturesDir
Replace `common.fixturesDir` with usage of the `common.fixtures` module PR-URL: https://github.com/nodejs/node/pull/15950 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
e6e58fde8b
commit
fcb0079c5f
@ -1,16 +1,16 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
|
|
||||||
if (!common.hasFipsCrypto)
|
if (!common.hasFipsCrypto)
|
||||||
common.skip('node compiled without FIPS OpenSSL.');
|
common.skip('node compiled without FIPS OpenSSL.');
|
||||||
|
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
const input = 'hello';
|
const input = 'hello';
|
||||||
|
|
||||||
const dsapri = fs.readFileSync(
|
const dsapri = fixtures.readKey('dsa_private_1025.pem');
|
||||||
`${common.fixturesDir}/keys/dsa_private_1025.pem`);
|
|
||||||
const sign = crypto.createSign('SHA1');
|
const sign = crypto.createSign('SHA1');
|
||||||
sign.update(input);
|
sign.update(input);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user