diff --git a/test/parallel/test-crypto-pbkdf2.js b/test/parallel/test-crypto-pbkdf2.js index f35c8af274f857..9ed719c1f68358 100644 --- a/test/parallel/test-crypto-pbkdf2.js +++ b/test/parallel/test-crypto-pbkdf2.js @@ -1,11 +1,12 @@ 'use strict'; const common = require('../common'); -const assert = require('assert'); if (!common.hasCrypto) { common.skip('missing crypto'); return; } + +const assert = require('assert'); const crypto = require('crypto'); // @@ -98,7 +99,7 @@ assert.doesNotThrow(() => { }); assert.throws(() => { - crypto.pbkdf2('password', 'salt', 8, 8, common.noop); + crypto.pbkdf2('password', 'salt', 8, 8, common.mustNotCall()); }, /^TypeError: The "digest" argument is required and must not be undefined$/); assert.throws(() => {