Skip to content

Commit 3beac87

Browse files
nektrotargos
authored andcommitted
test: test-crypto-scrypt.js doesn't need internals
PR-URL: #56673 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent bab9c4d commit 3beac87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/parallel/test-crypto-scrypt.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Flags: --expose-internals --no-warnings
21
'use strict';
32
const common = require('../common');
43
if (!common.hasCrypto)
@@ -7,8 +6,7 @@ if (!common.hasCrypto)
76
const assert = require('assert');
87
const crypto = require('crypto');
98

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

1412
const good = [

0 commit comments

Comments
 (0)