aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/serve.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'integration/bunjs-only-snippets/serve.test.ts')
-rw-r--r--integration/bunjs-only-snippets/serve.test.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/integration/bunjs-only-snippets/serve.test.ts b/integration/bunjs-only-snippets/serve.test.ts
index 653454cc3..099ac7b24 100644
--- a/integration/bunjs-only-snippets/serve.test.ts
+++ b/integration/bunjs-only-snippets/serve.test.ts
@@ -41,7 +41,9 @@ it("fetch should work with headers", async () => {
if (req.headers.get("X-Foo") !== "bar") {
return new Response("X-Foo header not set", { status: 500 });
}
- return new Response(file(fixture));
+ return new Response(file(fixture), {
+ headers: { "X-Both-Ways": "1" },
+ });
},
});
const response = await fetch(`http://localhost:${server.port}`, {
@@ -51,6 +53,7 @@ it("fetch should work with headers", async () => {
});
expect(response.status).toBe(200);
+ expect(response.headers.get("X-Both-Ways")).toBe("1");
server.stop();
});