diff options
author | 2023-02-13 04:37:12 -0800 | |
---|---|---|
committer | 2023-02-13 04:37:23 -0800 | |
commit | 37186f4b0a6b97ffb3ac1ec65ddc2146126b4545 (patch) | |
tree | 99bd379ab22c7531339c72c7d03f4fc9e6468b78 /test/bun.js | |
parent | f310d7414b3a9863d99773317620e93c1e8b6693 (diff) | |
download | bun-37186f4b0a6b97ffb3ac1ec65ddc2146126b4545.tar.gz bun-37186f4b0a6b97ffb3ac1ec65ddc2146126b4545.tar.zst bun-37186f4b0a6b97ffb3ac1ec65ddc2146126b4545.zip |
Add pretty printer for FormData
Diffstat (limited to '')
-rw-r--r-- | test/bun.js/FormData.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/bun.js/FormData.test.ts b/test/bun.js/FormData.test.ts index dbe1a8ef0..8e06aa96d 100644 --- a/test/bun.js/FormData.test.ts +++ b/test/bun.js/FormData.test.ts @@ -324,6 +324,15 @@ describe("FormData", () => { }); }); + it("Bun.inspect", () => { + const formData = new FormData(); + formData.append("foo", "bar"); + formData.append("foo", new Blob(["bar"])); + formData.append("bar", "baz"); + formData.append("boop", Bun.file("missing")); + expect(Bun.inspect(formData).length > 0).toBe(true); + }); + describe("URLEncoded", () => { test("should parse URL encoded", async () => { const response = new Response("foo=bar&baz=qux", { |