summaryrefslogtreecommitdiff
path: root/js/os_test.ts
diff options
context:
space:
mode:
authorEvgeniy Karagodin <ekaragodin@gmail.com>2019-06-25 23:05:41 +0700
committerRyan Dahl <ry@tinyclouds.org>2019-06-25 09:05:41 -0700
commitd089f9797830a2729cbd45cb4ea6312eb43a28de (patch)
treebf58f68b145696dc59282725b94dbfa8971a0e2c /js/os_test.ts
parentc56df45355c8e68eabbfa62021e7ca7484115c0b (diff)
Add homeDir to Deno namespace (#2578)
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(), "");
+});