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: #15950
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
delaguilaluis authored and MylesBorins committed Nov 28, 2017
1 parent 51d87e3 commit 25a5bf0
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 25a5bf0

Please sign in to comment.