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 Oct 11, 2017
1 parent 9059b09 commit 3063152
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 3063152

Please sign in to comment.