(algorithm)
| 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', |
no test coverage detected
searching dependent graphs…