mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: test-crypto-scrypt.js doesn't need internals
PR-URL: https://github.com/nodejs/node/pull/56673 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
bab9c4d331
commit
3beac87f92
1 file changed
+1
-3
@@ -1,4 +1,3 @@
|
||||
// Flags: --expose-internals --no-warnings
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user