diff options
| author | 2023-02-27 09:58:45 -0800 | |
|---|---|---|
| committer | 2023-02-27 09:58:45 -0800 | |
| commit | 18cce50390694231e4f235f14091f0153c1b8449 (patch) | |
| tree | 27beb7b9af3b560a2bcf87d8cc95d2988997079b /test/bun.js/os.test.js | |
| parent | c8be1e9a5dd36f5c6883a0d7058d1c6e6da2a5f8 (diff) | |
| download | bun-18cce50390694231e4f235f14091f0153c1b8449.tar.gz bun-18cce50390694231e4f235f14091f0153c1b8449.tar.zst bun-18cce50390694231e4f235f14091f0153c1b8449.zip | |
Feat/os.network interfaces (#2142)
Diffstat (limited to '')
| -rw-r--r-- | test/bun.js/os.test.js | 3 |
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"); } } }); |
