Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
John60676 committed Jun 6, 2023
1 parent a8b5362 commit 88bc096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/load-more.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ describe('useLoadMore', () => {
expect(wrapper.dataList.length).toBe(100);
expect(wrapper.loadingMore).toBe(false);
try {
wrapper.loadMoreAsync();
await wrapper.loadMoreAsync();
} catch (error) {
expect(error.message.includes('No more data')).toBe(true);
}
Expand Down

0 comments on commit 88bc096

Please sign in to comment.