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