From 9479524eace86d08e12afca34ba8d00f07009509 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 19 Sep 2023 23:29:09 +0900 Subject: [PATCH] test(dotenv): await assertRejects (#3651) --- dotenv/mod_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotenv/mod_test.ts b/dotenv/mod_test.ts index a736bf9262db..9425691e5236 100644 --- a/dotenv/mod_test.ts +++ b/dotenv/mod_test.ts @@ -722,19 +722,19 @@ Deno.test( assertStrictEquals(Object.keys(await load(optsNoPaths)).length, 0); assertEnv(await load(optsOnlyEnvPath)); - assertRejects( + await assertRejects( () => load(optsEnvPath), Deno.errors.PermissionDenied, `Requires read access to ".env.defaults"`, ); - assertRejects( + await assertRejects( () => load({ ...optsEnvPath, defaultsPath: null }), Deno.errors.PermissionDenied, `Requires read access to ".env.example"`, ); - assertRejects( + await assertRejects( () => load({ ...optsEnvPath, examplePath: null }), Deno.errors.PermissionDenied, `Requires read access to ".env.defaults"`,