From 30bdaf80ef11cc4956a02b33112b8f180224ad41 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 23 Mar 2022 04:26:56 -0700 Subject: :scissors: test --- integration/bunjs-only-snippets/fetch.test.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'integration/bunjs-only-snippets/fetch.test.js') diff --git a/integration/bunjs-only-snippets/fetch.test.js b/integration/bunjs-only-snippets/fetch.test.js index 018527287..76cd5123b 100644 --- a/integration/bunjs-only-snippets/fetch.test.js +++ b/integration/bunjs-only-snippets/fetch.test.js @@ -293,17 +293,7 @@ describe("Response", () => { ); expect(response.status).toBe(407); }); - it("overrides the content-type header", () => { - var response = Response.json("hello", { - headers: { - "content-type": "potato", - }, - }); - expect(response.type).toBe("basic"); - expect(response.headers.get("content-type")).toBe( - "application/json;charset=utf-8" - ); - }); + it("supports headers", () => { var response = Response.json("hello", { headers: { @@ -312,9 +302,7 @@ describe("Response", () => { }, status: 408, }); - expect(response.headers.get("content-type")).toBe( - "application/json;charset=utf-8" - ); + expect(response.headers.get("x-hello")).toBe("world"); expect(response.status).toBe(408); }); -- cgit v1.2.3