Skip to content

Commit 91f1075

Browse files
committed
feat(trends): add support for historical contribution views
1 parent cdb2047 commit 91f1075

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/dashboard/RefreshButton.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ beforeEach(() => {
4646

4747
vi.mocked(useSearchParams).mockReturnValue({
4848
get: vi.fn().mockReturnValue(null),
49+
toString: vi.fn().mockReturnValue(''),
4950
} as any);
5051
});
5152

@@ -69,6 +70,7 @@ describe('RefreshButton', () => {
6970
// Simulate the URL being: /dashboard/testuser?refresh=true
7071
vi.mocked(useSearchParams).mockReturnValue({
7172
get: (key: string) => (key === 'refresh' ? 'true' : null),
73+
toString: () => 'refresh=true',
7274
} as any);
7375

7476
render(<RefreshButton username="testuser" />);

0 commit comments

Comments
 (0)