We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744aaaf commit cccd1e2Copy full SHA for cccd1e2
1 file changed
packages/module/src/Hooks/pagination.test.tsx
@@ -84,11 +84,19 @@ describe('useDataViewPagination', () => {
84
})
85
);
86
87
+ expect(mockSetSearchParams).toHaveBeenNthCalledWith(
88
+ 1,
89
+ new URLSearchParams('page=1&perPage=5')
90
+ );
91
+
92
act(() => {
93
result.current.onSetPage(undefined, 4);
94
});
95
- expect(mockSetSearchParams).toHaveBeenCalledTimes(2);
96
97
+ 2,
98
+ new URLSearchParams('page=4')
99
100
101
102
it('should set pagination state in URL when perPage changes', () => {
0 commit comments