diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-11-25 02:23:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 02:23:03 +0100 |
commit | 1193d46485db35a1161e85515795340240a64201 (patch) | |
tree | 946214a138b81d10b4c382f31c4e5315150ec098 /cli/tests/unit/webcrypto_test.ts | |
parent | e68a241946f8fd6602b9d1a99c4b8fa7ead159ef (diff) |
tests: add 'await' to all invocations of 'assertRejects' (#12893)
Diffstat (limited to 'cli/tests/unit/webcrypto_test.ts')
-rw-r--r-- | cli/tests/unit/webcrypto_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/webcrypto_test.ts b/cli/tests/unit/webcrypto_test.ts index 7108e060b..5087c7076 100644 --- a/cli/tests/unit/webcrypto_test.ts +++ b/cli/tests/unit/webcrypto_test.ts @@ -521,7 +521,7 @@ Deno.test(async function testHkdfDeriveBitsWithLargeKeySize() { false, ["deriveBits"], ); - assertRejects( + await assertRejects( () => crypto.subtle.deriveBits( { @@ -705,7 +705,7 @@ Deno.test(async function testDecryptWithInvalidIntializationVector() { data, ); const initVector2 = crypto.getRandomValues(new Uint8Array(16)); - assertRejects(async () => { + await assertRejects(async () => { await crypto.subtle.decrypt( { name: "AES-CBC", iv: initVector2 }, key, |