summaryrefslogtreecommitdiff
path: root/tests/unit_node/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_node/os_test.ts')
-rw-r--r--tests/unit_node/os_test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit_node/os_test.ts b/tests/unit_node/os_test.ts
index 9ce9fc9eb..810c22518 100644
--- a/tests/unit_node/os_test.ts
+++ b/tests/unit_node/os_test.ts
@@ -48,6 +48,14 @@ Deno.test({
});
Deno.test({
+ name: "home directory when HOME is not set",
+ fn() {
+ Deno.env.delete("HOME");
+ assertEquals(typeof os.homedir(), "string");
+ },
+});
+
+Deno.test({
name: "tmp directory is a string",
fn() {
assertEquals(typeof os.tmpdir(), "string");