diff options
| author | 2022-05-08 01:14:21 -0700 | |
|---|---|---|
| committer | 2022-05-08 01:14:21 -0700 | |
| commit | d613ba5fcd3463160008d9af86ea7843d56a1e6a (patch) | |
| tree | 6cee80571c3a0d1a350c7a87cc6d6bed6443f875 /integration/bunjs-only-snippets | |
| parent | 4dee9be3eb8668dae4ec26308c4480fa0b59132c (diff) | |
| download | bun-d613ba5fcd3463160008d9af86ea7843d56a1e6a.tar.gz bun-d613ba5fcd3463160008d9af86ea7843d56a1e6a.tar.zst bun-d613ba5fcd3463160008d9af86ea7843d56a1e6a.zip | |
Update serve.test.ts
Diffstat (limited to '')
| -rw-r--r-- | integration/bunjs-only-snippets/serve.test.ts | 5 | 
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();  }); | 
