Skip to content

Commit b430591

Browse files
committed
test: adjust Netlify Edge stale cache-status assertion
1 parent be35e05 commit b430591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/page-router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ test.describe('Simple Page Router (no basePath, no i18n)', () => {
425425
const response2 = await page.goto(new URL(pathname, pageRouter.url).href)
426426
expect(response2?.status()).toBe(200)
427427
expect(response2?.headers()['cache-status']).toMatch(
428-
/("Netlify Edge"; hit; fwd=stale|"Netlify Durable"; hit; ttl=-[0-9]+)/m,
428+
/("Netlify Edge"; fwd=stale|"Netlify Durable"; hit; ttl=-[0-9]+)/m,
429429
)
430430
expect(response2?.headers()['debug-netlify-cdn-cache-control']).toMatch(
431431
/s-maxage=60, stale-while-revalidate=[0-9]+, durable/,

0 commit comments

Comments
 (0)