Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
owens1127 committed Dec 2, 2024
1 parent c8637d1 commit f112af2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/mocks/MockNextNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ export class MockNextNavigation {
this.useParams.mockClear();
this.usePathname.mockClear();
this.useSearchParams.mockClear();
this.useRouter.clear();
this.mockRouter.clear();
}

readonly mockRouter = new MockRouter();

readonly useSearchParams = mock();
readonly usePathname = mock();
readonly useRouter = new MockRouter();
readonly useRouter = () => this.mockRouter;
readonly useParams = mock();
}

Expand Down

0 comments on commit f112af2

Please sign in to comment.