diff options
author | Evgeniy Karagodin <ekaragodin@gmail.com> | 2019-06-25 23:05:41 +0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-25 09:05:41 -0700 |
commit | d089f9797830a2729cbd45cb4ea6312eb43a28de (patch) | |
tree | bf58f68b145696dc59282725b94dbfa8971a0e2c /js/os_test.ts | |
parent | c56df45355c8e68eabbfa62021e7ca7484115c0b (diff) |
Add homeDir to Deno namespace (#2578)
Diffstat (limited to 'js/os_test.ts')
-rw-r--r-- | js/os_test.ts | 12 |
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(), ""); +}); |