diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-11-10 10:49:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 11:49:57 -0700 |
commit | df14835b83085017e9cf9ae66a71cd523385c5c4 (patch) | |
tree | d258e907a9f94ebf0cd895b3fcf4441aa6a9f54a /cli/tests | |
parent | b78c7130e9986ce41284f33a0803ecdf6dd6affd (diff) |
fix(ext/node): implement process.geteuid (#21151)
Fixes #21097
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit_node/process_test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/unit_node/process_test.ts b/cli/tests/unit_node/process_test.ts index 1f4638b91..cd0dff0a4 100644 --- a/cli/tests/unit_node/process_test.ts +++ b/cli/tests/unit_node/process_test.ts @@ -728,6 +728,14 @@ Deno.test("process.getuid", () => { } }); +Deno.test("process.geteuid", () => { + if (Deno.build.os === "windows") { + assertEquals(process.geteuid, undefined); + } else { + assert(typeof process.geteuid?.() === "number"); + } +}); + Deno.test({ name: "process.exit", async fn() { |