summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/os_test.ts16
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(), "");
});