diff options
author | 2022-03-04 00:26:13 -0800 | |
---|---|---|
committer | 2022-03-04 00:26:13 -0800 | |
commit | d8d5b1a071db82edcf36b1abc3f72158c7967ce8 (patch) | |
tree | 1a8ad50c51f50ecbd023ccd78271e6c0cae2e8a5 /integration/bunjs-only-snippets/inspect.test.js | |
parent | bb64920cf0dda9d53f0f4e0918fb7af1c7acebb4 (diff) | |
download | bun-d8d5b1a071db82edcf36b1abc3f72158c7967ce8.tar.gz bun-d8d5b1a071db82edcf36b1abc3f72158c7967ce8.tar.zst bun-d8d5b1a071db82edcf36b1abc3f72158c7967ce8.zip |
more tests
Diffstat (limited to 'integration/bunjs-only-snippets/inspect.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/inspect.test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/integration/bunjs-only-snippets/inspect.test.js b/integration/bunjs-only-snippets/inspect.test.js index 70ba8ce73..d934a57b8 100644 --- a/integration/bunjs-only-snippets/inspect.test.js +++ b/integration/bunjs-only-snippets/inspect.test.js @@ -4,4 +4,15 @@ it("inspect", () => { expect(Bun.inspect(new TypeError("what")).includes("TypeError: what")).toBe( true ); + + expect("hi").toBe("hi"); + expect(Bun.inspect(1)).toBe("1"); + expect(Bun.inspect(1, "hi")).toBe("1 hi"); + expect(Bun.inspect([])).toBe("[]"); + expect(Bun.inspect({})).toBe("{ }"); + var str = "123"; + while (str.length < 4096) { + str += "123"; + } + expect(Bun.inspect(str)).toBe(str); }); |