AI: address review on PR #489
このコミットが含まれているのは:
@@ -116,6 +116,17 @@ describe ('prefetchForURL', () => {
|
||||
.toEqual ({ versions: [], count: 0 })
|
||||
})
|
||||
|
||||
it ('propagates history prefetch failure to the navigation caller', async () => {
|
||||
const client = qc ()
|
||||
const error = new Error ('unavailable')
|
||||
postsApi.fetchPostChanges.mockRejectedValueOnce (error)
|
||||
|
||||
await expect (prefetchForURL (client, '/ja/posts/changes?id=12'))
|
||||
.rejects.toBe (error)
|
||||
expect (client.getQueryData (postsKeys.changes (
|
||||
{ post: '12', page: 1, limit: 20 }, 'ja'))).toBeUndefined ()
|
||||
})
|
||||
|
||||
it ('preserves an external tag filter when prefetching one post history', async () => {
|
||||
const client = qc ()
|
||||
const params = { post: '12', externalTag: '7', page: 1, limit: 20 }
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする