From cfbe37c6f1a2d66d689315f4f268044fccea8d47 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 17 Jan 2026 11:56:01 +0100 Subject: [PATCH] test: check new WebCryptoAPI enum values --- test/parallel/test-webcrypto-webidl.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-webcrypto-webidl.js b/test/parallel/test-webcrypto-webidl.js index c33885e8354810..99386176c4d6ef 100644 --- a/test/parallel/test-webcrypto-webidl.js +++ b/test/parallel/test-webcrypto-webidl.js @@ -238,7 +238,16 @@ const opts = { prefix, context }; // KeyFormat { - for (const good of ['jwk', 'spki', 'pkcs8', 'raw']) { + for (const good of [ + 'jwk', + 'spki', + 'pkcs8', + 'raw', + 'raw-public', + 'raw-seed', + 'raw-secret', + 'raw-private', + ]) { assert.strictEqual(converters.KeyFormat(good), good); } @@ -262,6 +271,10 @@ const opts = { prefix, context }; 'deriveBits', 'wrapKey', 'unwrapKey', + 'encapsulateBits', + 'decapsulateBits', + 'encapsulateKey', + 'decapsulateKey', ]) { assert.strictEqual(converters.KeyUsage(good), good); }