aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/os.test.js
diff options
context:
space:
mode:
authorGravatar Justin Whear <justin.whear+github@gmail.com> 2023-02-27 09:58:45 -0800
committerGravatar GitHub <noreply@github.com> 2023-02-27 09:58:45 -0800
commit18cce50390694231e4f235f14091f0153c1b8449 (patch)
tree27beb7b9af3b560a2bcf87d8cc95d2988997079b /test/bun.js/os.test.js
parentc8be1e9a5dd36f5c6883a0d7058d1c6e6da2a5f8 (diff)
downloadbun-18cce50390694231e4f235f14091f0153c1b8449.tar.gz
bun-18cce50390694231e4f235f14091f0153c1b8449.tar.zst
bun-18cce50390694231e4f235f14091f0153c1b8449.zip
Feat/os.network interfaces (#2142)
Diffstat (limited to 'test/bun.js/os.test.js')
-rw-r--r--test/bun.js/os.test.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bun.js/os.test.js b/test/bun.js/os.test.js
index 87c03d5d4..122969337 100644
--- a/test/bun.js/os.test.js
+++ b/test/bun.js/os.test.js
@@ -110,7 +110,8 @@ it("networkInterfaces", () => {
expect(typeof nI.family === "string").toBe(true);
expect(typeof nI.mac === "string").toBe(true);
expect(typeof nI.internal === "boolean").toBe(true);
- expect(typeof nI.cidr).toBe("string");
+ if (nI.cidr) // may be null
+ expect(typeof nI.cidr).toBe("string");
}
}
});