Skip to content

Commit

Permalink
[#19] Add test for PrivateRoutes but infinite redirect loop if no user
Browse files Browse the repository at this point in the history
  • Loading branch information
liamstevens111 committed Mar 22, 2023
1 parent b93f795 commit 9fc83a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PrivateRoute/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable camelcase */
import { MemoryRouter } from 'react-router-dom';

import { render, screen } from '@testing-library/react';
import { render, screen, waitForElementToBeRemoved } from '@testing-library/react';

import PrivateRoute from '.';
import { setItem, clearItem } from '../../helpers/localStorage';
Expand Down

0 comments on commit 9fc83a2

Please sign in to comment.