Skip to content

Commit a132be7

Browse files
panvaaduh95
authored andcommitted
test: check new WebCryptoAPI enum values
PR-URL: #61406 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent ca4ebed commit a132be7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/parallel/test-webcrypto-webidl.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,16 @@ const opts = { prefix, context };
238238

239239
// KeyFormat
240240
{
241-
for (const good of ['jwk', 'spki', 'pkcs8', 'raw']) {
241+
for (const good of [
242+
'jwk',
243+
'spki',
244+
'pkcs8',
245+
'raw',
246+
'raw-public',
247+
'raw-seed',
248+
'raw-secret',
249+
'raw-private',
250+
]) {
242251
assert.strictEqual(converters.KeyFormat(good), good);
243252
}
244253

@@ -262,6 +271,10 @@ const opts = { prefix, context };
262271
'deriveBits',
263272
'wrapKey',
264273
'unwrapKey',
274+
'encapsulateBits',
275+
'decapsulateBits',
276+
'encapsulateKey',
277+
'decapsulateKey',
265278
]) {
266279
assert.strictEqual(converters.KeyUsage(good), good);
267280
}

0 commit comments

Comments
 (0)