Skip to content

Commit bb64d82

Browse files
committed
test: update static 404 test
1 parent 238e6e6 commit bb64d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/static.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test<FixtureTestContext>('requesting a non existing page route that needs to be
5454
// test that it should request the 404.html file
5555
const call1 = await invokeFunction(ctx, { url: 'static/revalidate-not-existing' })
5656
expect(call1.statusCode).toBe(404)
57-
expect(load(call1.body)('h1').text()).toBe('404')
57+
expect(load(call1.body)('p').text()).toBe('Custom 404 page')
5858

5959
// https://github.com/vercel/next.js/pull/69802 made changes to returned cache-control header,
6060
// after that (14.2.10 and canary.147) 404 pages would have `private` directive, before that it

0 commit comments

Comments
 (0)