diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-06-12 09:53:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 09:53:53 -0400 |
commit | e9424bf6b59b4e27c2691b70879cb1de874f98ce (patch) | |
tree | 3a11c12f74f1f2e86c38814620961a0532f38812 /cli/tests | |
parent | b34f4689430db67d98aa037193a118bc088e48d6 (diff) |
Revert "feat: add Deno.osName()" (#6261)
Deno.build.os provides the same functionality
This reverts commit 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114.
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/os_test.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cli/tests/unit/os_test.ts b/cli/tests/unit/os_test.ts index deb0385a8..9698692c7 100644 --- a/cli/tests/unit/os_test.ts +++ b/cli/tests/unit/os_test.ts @@ -326,22 +326,6 @@ unitTest({ perms: { env: false } }, function hostnamePerm(): void { assert(caughtError); }); -unitTest({ perms: { env: true } }, function osName(): void { - assertNotEquals(Deno.osName(), ""); -}); - -unitTest({ perms: { env: false } }, function osNamePerm(): void { - let caughtError = false; - try { - Deno.osName(); - } catch (err) { - caughtError = true; - assert(err instanceof Deno.errors.PermissionDenied); - assertEquals(err.name, "PermissionDenied"); - } - assert(caughtError); -}); - unitTest({ perms: { env: true } }, function releaseDir(): void { assertNotEquals(Deno.osRelease(), ""); }); |