Skip to content

Commit

Permalink
test: remove common.fixturesDir
Browse files Browse the repository at this point in the history
Replace `common.fixturesDir` with usage of the `common.fixtures` module

PR-URL: nodejs/node#15950
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
delaguilaluis authored and addaleax committed Oct 11, 2017
1 parent 423926a commit fc5f218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-dsa-fips-invalid-key.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');

if (!common.hasFipsCrypto)
common.skip('node compiled without FIPS OpenSSL.');

const assert = require('assert');
const crypto = require('crypto');
const fs = require('fs');

const input = 'hello';

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

Expand Down

0 comments on commit fc5f218

Please sign in to comment.