Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkrumbach07 committed Dec 11, 2024
1 parent 89c8d87 commit 92e5635
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frontend/src/utilities/__tests__/useRedirect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ describe('useRedirect', () => {
renderResult.rerender(createRedirectPath, { onError });

expect(onError).toHaveBeenCalledWith(expect.any(Error));
expect(mockNavigate).toHaveBeenCalledWith('/not-found', { replace: true });
expect(renderResult.result.current[1].loaded).toBe(true);
expect(renderResult.result.current[1].error).toBeInstanceOf(Error);
});
Expand All @@ -84,7 +83,6 @@ describe('useRedirect', () => {
renderResult.rerender(createRedirectPath, { onError });

expect(onError).toHaveBeenCalledWith(error);
expect(mockNavigate).toHaveBeenCalledWith('/not-found', { replace: true });
expect(renderResult.result.current[1].loaded).toBe(true);
expect(renderResult.result.current[1].error).toBe(error);
});
Expand Down

0 comments on commit 92e5635

Please sign in to comment.