| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 005ebaf commit 30d7f05
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -152,6 +152,13 @@ async function testSign({ hash, | |||
| 152 | 152 | assert(await subtle.verify({ name, hash }, key, sig, plaintext)); | |
| 153 | 153 | } | |
| 154 | 154 | ||
| 155 | + await assert.rejects( | ||
| 156 | + subtle.generateKey({ name }, false, []), { | ||
| 157 | + name: 'TypeError', | ||
| 158 | + code: 'ERR_MISSING_OPTION', | ||
| 159 | + message: 'algorithm.hash is required' | ||
| 160 | + }); | ||
| 161 | + | ||
| 155 | 162 | // Test failure when no sign usage | |
| 156 | 163 | await assert.rejects( | |
| 157 | 164 | subtle.sign({ name, hash }, noSignKey, plaintext), { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments