diff options
Diffstat (limited to 'js/os_test.ts')
-rw-r--r-- | js/os_test.ts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/js/os_test.ts b/js/os_test.ts index 0784fd5e4..c37a9a1ea 100644 --- a/js/os_test.ts +++ b/js/os_test.ts @@ -1,22 +1,21 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, testPerm, assert, assertEqual } from "./test_util.ts"; -import * as deno from "deno"; testPerm({ env: true }, function envSuccess() { - const env = deno.env(); + const env = Deno.env(); assert(env !== null); env.test_var = "Hello World"; - const newEnv = deno.env(); + const newEnv = Deno.env(); assertEqual(env.test_var, newEnv.test_var); }); test(function envFailure() { let caughtError = false; try { - const env = deno.env(); + const env = Deno.env(); } catch (err) { caughtError = true; - assertEqual(err.kind, deno.ErrorKind.PermissionDenied); + assertEqual(err.kind, Deno.ErrorKind.PermissionDenied); assertEqual(err.name, "PermissionDenied"); } @@ -24,11 +23,11 @@ test(function envFailure() { }); test(function osPid() { - console.log("pid", deno.pid); - assert(deno.pid > 0); + console.log("pid", Deno.pid); + assert(Deno.pid > 0); }); // See complete tests in tools/is_tty_test.py test(function osIsTTYSmoke() { - console.log(deno.isTTY()); + console.log(Deno.isTTY()); }); |