summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/os_test.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/unit/os_test.ts b/cli/tests/unit/os_test.ts
index 6ed1126f1..b5ff6f29f 100644
--- a/cli/tests/unit/os_test.ts
+++ b/cli/tests/unit/os_test.ts
@@ -204,3 +204,13 @@ Deno.test({ permissions: { env: true } }, function getUid() {
assert(uid > 0);
}
});
+
+Deno.test({ permissions: { env: true } }, function getGid() {
+ if (Deno.build.os === "windows") {
+ assertEquals(Deno.getGid(), null);
+ } else {
+ const gid = Deno.getGid();
+ assert(typeof gid === "number");
+ assert(gid > 0);
+ }
+});