Skip to content

Commit b14ccb4

Browse files
committed
fix e2e test
1 parent e16ed40 commit b14ccb4

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

packages/@apphosting/adapter-nextjs/e2e/app.spec.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ describe("app", () => {
1212
const response = await fetch(host);
1313
assert.ok(response.ok);
1414
assert.equal(response.headers.get("content-type")?.toLowerCase(), "text/html; charset=utf-8");
15-
assert.equal(
16-
response.headers.get("cache-control"),
17-
"s-maxage=31536000, stale-while-revalidate",
18-
);
15+
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000");
1916
});
2017

2118
it("/ssg", async () => {
2219
const response = await fetch(posix.join(host, "ssg"));
2320
assert.ok(response.ok);
2421
assert.equal(response.headers.get("content-type")?.toLowerCase(), "text/html; charset=utf-8");
25-
assert.equal(
26-
response.headers.get("cache-control"),
27-
"s-maxage=31536000, stale-while-revalidate",
28-
);
22+
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000");
2923
const text = await response.text();
3024
assert.ok(text.includes("SSG"));
3125
assert.ok(text.includes("Generated"));
@@ -80,10 +74,7 @@ describe("app", () => {
8074
const response = await fetch(posix.join(host, "isr", "demand"));
8175
assert.ok(response.ok);
8276
assert.equal(response.headers.get("content-type")?.toLowerCase(), "text/html; charset=utf-8");
83-
assert.equal(
84-
response.headers.get("cache-control"),
85-
"s-maxage=31536000, stale-while-revalidate",
86-
);
77+
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000");
8778
const text = await response.text();
8879
assert.ok(text.includes("A cached page"));
8980
assert.ok(text.includes("Generated"));

0 commit comments

Comments
 (0)