diff options
author | 2023-02-18 15:54:59 -0600 | |
---|---|---|
committer | 2023-02-18 13:54:59 -0800 | |
commit | 963bb54e87ca851fef6eb7160fb7c0c6a53088d4 (patch) | |
tree | 871860ef5f4477d451b86d0607d57b3ef3479a2d /test/bun.js/os.test.js | |
parent | 8ff1ff16a5e7446313836dffabcfb95117976c78 (diff) | |
download | bun-963bb54e87ca851fef6eb7160fb7c0c6a53088d4.tar.gz bun-963bb54e87ca851fef6eb7160fb7c0c6a53088d4.tar.zst bun-963bb54e87ca851fef6eb7160fb7c0c6a53088d4.zip |
feat(node/os): implement `os.machine()` (#1378)
* feat(node/os): implement 'os.machine()'
---------
Co-authored-by: Justin Whear <justin.whear+github@gmail.com>
Diffstat (limited to 'test/bun.js/os.test.js')
-rw-r--r-- | test/bun.js/os.test.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/bun.js/os.test.js b/test/bun.js/os.test.js index 9ae82d8ae..87c03d5d4 100644 --- a/test/bun.js/os.test.js +++ b/test/bun.js/os.test.js @@ -116,7 +116,21 @@ it("networkInterfaces", () => { }); it("machine", () => { - expect(os.machine().length > 1).toBe(true); + const possibleValues = [ + "arm", + "arm64", + "aarch64", + "mips", + "mips64", + "ppc64", + "ppc64le", + "s390", + "s390x", + "i386", + "i686", + "x86_64", + ]; + expect(possibleValues.includes(os.machine())).toBe(true); }); it("EOL", () => { |