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
  • Loading branch information
nektro authored Jan 21, 2025
1 parent 7bc2946 commit 453fd90
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 453fd90

Please sign in to comment.