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/testing_test.ts | |
parent | e68a241946f8fd6602b9d1a99c4b8fa7ead159ef (diff) |
tests: add 'await' to all invocations of 'assertRejects' (#12893)
Diffstat (limited to 'cli/tests/unit/testing_test.ts')
-rw-r--r-- | cli/tests/unit/testing_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/tests/unit/testing_test.ts b/cli/tests/unit/testing_test.ts index de3da77aa..7aa55e2c1 100644 --- a/cli/tests/unit/testing_test.ts +++ b/cli/tests/unit/testing_test.ts @@ -80,8 +80,8 @@ Deno.test(function nameOfTestCaseCantBeEmpty() { ); }); -Deno.test(function invalidStepArguments(t) { - assertRejects( +Deno.test(async function invalidStepArguments(t) { + await assertRejects( async () => { // deno-lint-ignore no-explicit-any await (t as any).step("test"); @@ -90,7 +90,7 @@ Deno.test(function invalidStepArguments(t) { "Expected function for second argument.", ); - assertRejects( + await assertRejects( async () => { // deno-lint-ignore no-explicit-any await (t as any).step("test", "not a function"); @@ -99,7 +99,7 @@ Deno.test(function invalidStepArguments(t) { "Expected function for second argument.", ); - assertRejects( + await assertRejects( async () => { // deno-lint-ignore no-explicit-any await (t as any).step(); @@ -108,7 +108,7 @@ Deno.test(function invalidStepArguments(t) { "Expected a test definition or name and function.", ); - assertRejects( + await assertRejects( async () => { // deno-lint-ignore no-explicit-any await (t as any).step(() => {}); |