summaryrefslogtreecommitdiff
path: root/cli/js/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/os_test.ts')
-rw-r--r--cli/js/os_test.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/js/os_test.ts b/cli/js/os_test.ts
index e77678ec1..55a62792d 100644
--- a/cli/js/os_test.ts
+++ b/cli/js/os_test.ts
@@ -242,12 +242,7 @@ testPerm({ env: true }, function getDir(): void {
if (r.shouldHaveValue) {
assertNotEquals(Deno.dir(s.kind), "");
} else {
- // if not support your platform. it should throw an error
- assertThrows(
- () => Deno.dir(s.kind),
- Deno.DenoError,
- `Could not get user ${s.kind} directory.`
- );
+ assertEquals(Deno.dir(s.kind), null);
}
}
}