(asPath: string, query: Record<string, string>)
| 13 | const replace = jest.fn(); |
| 14 | |
| 15 | const mockRouter = (asPath: string, query: Record<string, string>) => |
| 16 | jest.mocked(useRouter).mockReturnValue({ |
| 17 | asPath, |
| 18 | query, |
| 19 | replace, |
| 20 | } as unknown as ReturnType<typeof useRouter>); |
| 21 | |
| 22 | describe('useQueryTab', () => { |
| 23 | beforeEach(() => { |