This commit is contained in:
Eric Bailey
2026-08-31 17:31:51 -05:00
parent 7aaa40e8e3
commit 532b57bf66
+2 -2
View File
@@ -78,14 +78,14 @@ describe('useAutoPagination', () => {
const itemCount = 0
const {rerender} = renderHook(() => useAutoPagination(value, itemCount, 10))
for (let i = 1; i < 50; i++) {
for (let i = 1; i < 5; i++) {
value = query({
fetchNextPage,
data,
})
rerender(undefined)
}
expect(fetchNextPage).toHaveBeenCalledTimes(49)
expect(fetchNextPage).toHaveBeenCalledTimes(4)
const second = query({
data: {