import { it, describe, expect } from "bun:test"; describe("body-mixin-errors", () => { it("should fail when bodyUsed", async () => { var res = new Response("a"); expect(res.bodyUsed).toBe(false); await res.text(); expect(res.bodyUsed).toBe(true); try { await res.text(); throw new Error("should not get here"); } catch (e: any) { expect(e.message).toBe("Body already used"); } }); }); /> index : astro
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmd (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-05-11Fix APIRoute type (#3344)Gravatar Matthew Phillips 3-11/+8
2022-05-11[create-astro] Finalize developer experience... with gradients 🚀 (#3313)Gravatar Ben Holmes 5-23/+123