Skip to content

Commit

Permalink
fix: dashboard/roadmap redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewolfd authored and dsueltenfuss committed Feb 8, 2022
1 parent 38d98a2 commit f009fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/test/pages/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ describe("HomePage", () => {
expect(mockPush).toHaveBeenCalledWith("/onboarding");
});

it("redirects to onboarding page when it is unknown if user has completed onboarding flow or not", () => {
it("redirects to roadmap page when it is unknown if user has completed onboarding flow or not", () => {
setMockUserDataResponse({ error: "NO_DATA", userData: undefined });
render(withAuth(<Home />, { user: generateUser({}) }));
expect(mockPush).toHaveBeenCalledWith("/roadmap");
expect(mockPush).toHaveBeenCalledWith("/roadmap?error=true");
});
it("opens the modal with signUp = true in the querystring", () => {
useMockRouter({ isReady: true, query: { signUp: "true" } });
Expand Down

0 comments on commit f009fa7

Please sign in to comment.