mirror of https://github.com/buster-so/buster.git
12 lines
279 B
TypeScript
12 lines
279 B
TypeScript
|
// mocks/next-navigation.ts
|
||
|
export const useRouter = () => ({
|
||
|
push: () => {},
|
||
|
replace: () => {},
|
||
|
refresh: () => {},
|
||
|
back: () => {}
|
||
|
});
|
||
|
|
||
|
export const usePathname = () => '/';
|
||
|
export const useSearchParams = () => new URLSearchParams();
|
||
|
export const useParams = () => ({});
|