Skip to content

Commit 95f7c94

Browse files
committed
test: add e2e test for refresh hooks revalidate
1 parent e043e9d commit 95f7c94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cypress/integration/default/dynamic-routes.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ describe('Static Routing', () => {
2121
expect(res.body).to.contain('Dancing with the Stars')
2222
})
2323
})
24+
it('revalidates page via refresh hooks on a static route', () => {
25+
cy.request({ url: '/api/revalidate/' }).then((res) => {
26+
expect(res.status).to.eq(200)
27+
expect(res.body).to.equal({ revalidated: true })
28+
})
29+
})
2430
})
2531

2632
describe('Dynamic Routing', () => {

0 commit comments

Comments
 (0)