From 6af115ddaa8d71251d56eb014eb343009fbb9924 Mon Sep 17 00:00:00 2001 From: Zuri Klaschka Date: Tue, 29 Oct 2024 03:31:33 +0100 Subject: [PATCH] test: :white_check_mark: Fix dangling promise error in tests --- mod_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod_test.ts b/mod_test.ts index 73f1d62..15a8c88 100644 --- a/mod_test.ts +++ b/mod_test.ts @@ -116,13 +116,13 @@ Deno.test("initVariable", async (t) => { ); prepare("value"); - assertRejects( + await assertRejects( () => initVariable(ENV_VAR, REQUIRED_FAILING), ConfigParseError, undefined, "Expected a ConfigParseError when the value cannot be parsed", ); - assertRejects( + await assertRejects( () => initVariable(ENV_VAR, OPTIONAL_FAILING), ConfigParseError, undefined, @@ -168,7 +168,7 @@ Deno.test("initVariable", async (t) => { ); prepare(undefined, EXISTING_FILE); - assertRejects( + await assertRejects( () => initVariable(ENV_VAR, REQUIRED_FAILING), ConfigParseError, undefined, @@ -176,7 +176,7 @@ Deno.test("initVariable", async (t) => { ); prepare(undefined, NONEXISTING_FILE); - assertRejects( + await assertRejects( () => initVariable(ENV_VAR, REQUIRED_PASSING), ConfigFileReadError, undefined, @@ -212,7 +212,7 @@ Deno.test("initVariable", async (t) => { ); prepare(); - assertRejects( + await assertRejects( () => initVariable(ENV_VAR, REQUIRED_FAILING, DEFAULT_VALUE), ConfigParseError, undefined,