summaryrefslogtreecommitdiff
path: root/js/os_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/os_test.ts')
-rw-r--r--js/os_test.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/js/os_test.ts b/js/os_test.ts
index d3c9e6546..766cd1c3f 100644
--- a/js/os_test.ts
+++ b/js/os_test.ts
@@ -1,5 +1,11 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { test, testPerm, assert, assertEquals } from "./test_util.ts";
+import {
+ test,
+ testPerm,
+ assert,
+ assertEquals,
+ assertNotEquals
+} from "./test_util.ts";
testPerm({ env: true }, function envSuccess(): void {
const env = Deno.env();
@@ -32,3 +38,7 @@ test(function osPid(): void {
test(function osIsTTYSmoke(): void {
console.log(Deno.isTTY());
});
+
+test(function homeDir(): void {
+ assertNotEquals(Deno.homeDir(), "");
+});