MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/parallel/test-webcrypto-keygen.js:213–218  ·  view source on GitHub ↗
(algorithm)

Source from the content-addressed store, hash-verified

211// Test invalid algorithms
212{
213 async function test(algorithm) {
214 return assert.rejects(
215 // The extractable and usages values are invalid here also,
216 // but the unrecognized algorithm name should be caught first.
217 subtle.generateKey(algorithm, 7, []), { name: 'NotSupportedError' });
218 }
219
220 const tests = [
221 'AES',

Callers 1

Calls 11

isCryptoKeyFunction · 0.85
includesMethod · 0.80
concatMethod · 0.80
allMethod · 0.80
forEachMethod · 0.65
mapMethod · 0.65
assertFunction · 0.50
pushMethod · 0.45
toStringMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…