豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit f32d01c

Browse files
committed
Adjust prefetch fallback helper expectations
1 parent 84e9e28 commit f32d01c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/next/src/client/output-export-fallback.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ describe('output export fallback helpers', () => {
260260
expect(result).not.toBeNull()
261261
expect(result?.fallbackUrl.pathname).toBe('/docs/__fallback/__route_0')
262262
expect(fetchMock.mock.calls.map(([url]) => String(url))).toEqual([
263+
'https://example.com/docs/api/reference/__fallback.txt',
264+
'https://example.com/docs/api/reference/__fallback.meta.json',
265+
'https://example.com/docs/api/__fallback.txt',
266+
'https://example.com/docs/api/__fallback.meta.json',
263267
'https://example.com/docs/__fallback.txt',
264268
'https://example.com/docs/__fallback.meta.json',
265269
'https://example.com/docs/__fallback/__route_0.txt',
@@ -449,9 +453,15 @@ describe('output export fallback helpers', () => {
449453
)
450454

451455
expect(fetchMock.mock.calls.map(([url]) => String(url))).toEqual([
456+
'https://example.com/docs/api/reference/__fallback.txt',
457+
'https://example.com/docs/api/reference/__fallback.meta.json',
458+
'https://example.com/docs/api/__fallback.txt',
459+
'https://example.com/docs/api/__fallback.meta.json',
452460
'https://example.com/docs/__fallback.txt',
453461
'https://example.com/docs/__fallback.meta.json',
454462
'https://example.com/docs/__fallback/__route_0.txt',
463+
'https://example.com/docs/api/guide/__fallback.txt',
464+
'https://example.com/docs/api/guide/__fallback.meta.json',
455465
])
456466
})
457467
})

0 commit comments

Comments
 (0)