Skip to content

Commit

Permalink
test: test-crypto-scrypt.js doesn't need internals
Browse files Browse the repository at this point in the history
PR-URL: #56673
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
nektro authored Jan 31, 2025
1 parent 752c0b8 commit be9b614
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/parallel/test-crypto-scrypt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Flags: --expose-internals --no-warnings
'use strict';
const common = require('../common');
if (!common.hasCrypto)
Expand All @@ -7,8 +6,7 @@ if (!common.hasCrypto)
const assert = require('assert');
const crypto = require('crypto');

const { internalBinding } = require('internal/test/binding');
if (typeof internalBinding('crypto').ScryptJob !== 'function')
if (typeof crypto.scrypt !== 'function' || typeof crypto.scryptSync !== 'function')
common.skip('no scrypt support');

const good = [
Expand Down

0 comments on commit be9b614

Please sign in to comment.