Skip to content

Commit a14b9ca

Browse files
bowencoolCopilot
andauthored
Commit suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c446c9e commit a14b9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hooks/src/useInfiniteScroll/__tests__/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ describe('useInfiniteScroll', () => {
566566
await act(async () => {
567567
vi.advanceTimersByTime(1000);
568568
});
569-
expect(result.current.data?.list).toMatchObject([1, 2, 3, 4, 5, 6]);
569+
expect(result.current.data?.list).toEqual([1, 2, 3, 4, 5, 6]);
570570
expect(result.current.noMore).toBe(true);
571571

572572
scrollHeightSpy.mockRestore();

0 commit comments

Comments
 (0)