Skip to content

Commit cf807d4

Browse files
authored
fix e2e methods static get route (#785)
1 parent ad92bfd commit cf807d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tests-e2e/tests/appRouter/methods.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ test("revalidate should work in GET route handler", async ({
141141

142142
test("should cache a static GET route", async ({ request }) => {
143143
const res = await request.get("/methods/get/static");
144-
expect(res.headers()["cache-control"]).toBe("s-maxage=31536000,");
144+
expect(res.headers()["cache-control"]).toContain("s-maxage=31536000");
145145
});
146146

147147
test("should be able to set cookies in route handler", async ({ request }) => {

0 commit comments

Comments
 (0)