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

Commit b2f09c7

Browse files
committed
Adjust prefetch fallback helper expectations
1 parent d86b95c commit b2f09c7

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
@@ -258,6 +258,10 @@ describe('output export fallback helpers', () => {
258258
expect(result).not.toBeNull()
259259
expect(result?.fallbackUrl.pathname).toBe('/docs/__fallback/__route_0')
260260
expect(fetchMock.mock.calls.map(([url]) => String(url))).toEqual([
261+
'https://example.com/docs/api/reference/__fallback.txt',
262+
'https://example.com/docs/api/reference/__fallback.meta.json',
263+
'https://example.com/docs/api/__fallback.txt',
264+
'https://example.com/docs/api/__fallback.meta.json',
261265
'https://example.com/docs/__fallback.txt',
262266
'https://example.com/docs/__fallback.meta.json',
263267
'https://example.com/docs/__fallback/__route_0.txt',
@@ -388,9 +392,15 @@ describe('output export fallback helpers', () => {
388392
)
389393

390394
expect(fetchMock.mock.calls.map(([url]) => String(url))).toEqual([
395+
'https://example.com/docs/api/reference/__fallback.txt',
396+
'https://example.com/docs/api/reference/__fallback.meta.json',
397+
'https://example.com/docs/api/__fallback.txt',
398+
'https://example.com/docs/api/__fallback.meta.json',
391399
'https://example.com/docs/__fallback.txt',
392400
'https://example.com/docs/__fallback.meta.json',
393401
'https://example.com/docs/__fallback/__route_0.txt',
402+
'https://example.com/docs/api/guide/__fallback.txt',
403+
'https://example.com/docs/api/guide/__fallback.meta.json',
394404
])
395405
})
396406
})

0 commit comments

Comments
 (0)