From d089f9797830a2729cbd45cb4ea6312eb43a28de Mon Sep 17 00:00:00 2001 From: Evgeniy Karagodin Date: Tue, 25 Jun 2019 23:05:41 +0700 Subject: Add homeDir to Deno namespace (#2578) --- js/os_test.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'js/os_test.ts') 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(), ""); +}); -- cgit v1.2.3