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:
Meghan Denny authored and Michaël Zasso committed 2025-02-02 17:37:03 +01:00
1 parent bab9c4d331
commit 3beac87f92
1 file changed
+1 -3
+1 -3
View File
@@ -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 = [