Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit 672fb1e

Browse files
committed
test: update test with breaking changes
1 parent 33eb38b commit 672fb1e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/basic.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,6 @@ describe.skipIf(process.env.NUXT_TEST_DEV || isWindows)('payload rendering', ()
805805
await page.click('[href="/random/b"]')
806806
await page.waitForLoadState('networkidle')
807807

808-
// We are not triggering API requests in the payload in client-side nav
809-
expect(requests).not.toContain('/api/random')
810-
811808
// We are fetching a payload we did not prefetch
812809
expect(requests).toContain('/random/b/_payload.js' + importSuffix)
813810

@@ -818,9 +815,6 @@ describe.skipIf(process.env.NUXT_TEST_DEV || isWindows)('payload rendering', ()
818815
await page.click('[href="/random/c"]')
819816
await page.waitForLoadState('networkidle')
820817

821-
// We are not triggering API requests in the payload in client-side nav
822-
expect(requests).not.toContain('/api/random')
823-
824818
// We are not refetching payloads we've already prefetched
825819
// Note: we refetch on dev as urls differ between '' and '?import'
826820
// expect(requests.filter(p => p.includes('_payload')).length).toBe(process.env.NUXT_TEST_DEV ? 1 : 0)

0 commit comments

Comments
 (0)