Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2022-05-11 | Fix APIRoute type (#3344) | 3 | -11/+8 | |
2022-05-11 | [create-astro] Finalize developer experience... with gradients 🚀 (#3313) | 5 | -23/+123 |
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"); } }); }); />
aboutsummaryrefslogtreecommitdiff |
Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2022-05-11 | Fix APIRoute type (#3344) | 3 | -11/+8 | |
2022-05-11 | [create-astro] Finalize developer experience... with gradients 🚀 (#3313) | 5 | -23/+123 |