summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/os_test.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-01-02 19:27:54 +0530
committerGitHub <noreply@github.com>2024-01-02 14:57:54 +0100
commit9f7586a20691e5adb080f60f569498844f8a295f (patch)
tree0b256481c33216b2a42a94693d6a8c44aa97cead /cli/tests/unit_node/os_test.ts
parent8e4feacd258b2fc019f2b9612133231fa8be14c0 (diff)
fix(ext/node): implement os.machine (#21751)
Diffstat (limited to 'cli/tests/unit_node/os_test.ts')
-rw-r--r--cli/tests/unit_node/os_test.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/unit_node/os_test.ts b/cli/tests/unit_node/os_test.ts
index 4df53534a..f4da8d030 100644
--- a/cli/tests/unit_node/os_test.ts
+++ b/cli/tests/unit_node/os_test.ts
@@ -30,6 +30,17 @@ Deno.test({
});
Deno.test({
+ name: "os machine (arch)",
+ fn() {
+ if (Deno.build.arch == "aarch64") {
+ assertEquals(os.machine(), "arm64");
+ } else {
+ assertEquals(os.machine(), Deno.build.arch);
+ }
+ },
+});
+
+Deno.test({
name: "home directory is a string",
fn() {
assertEquals(typeof os.homedir(), "string");