aboutsummaryrefslogtreecommitdiff
path: root/test/js/web/fetch/fetch.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/web/fetch/fetch.test.ts')
-rw-r--r--test/js/web/fetch/fetch.test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/js/web/fetch/fetch.test.ts b/test/js/web/fetch/fetch.test.ts
index 100f6e79e..85e2296cd 100644
--- a/test/js/web/fetch/fetch.test.ts
+++ b/test/js/web/fetch/fetch.test.ts
@@ -1501,10 +1501,12 @@ describe("should strip headers", () => {
method: "POST",
headers: {
"I-Am-Here": "yes",
+ "Content-Language": "This should be stripped",
},
});
- expect(headers.get("I-Am-Here")).toBeNull();
+ expect(headers.get("I-Am-Here")).toBe("yes");
+ expect(headers.get("Content-Language")).toBeNull();
expect(url).toEndWith("/redirected");
expect(redirected).toBe(true);
server.stop(true);