Migrated App test to react testing library

This commit is contained in:
Alejandro Celaya
2022-05-03 17:36:34 +02:00
parent e6f9003fb6
commit 9784cbb3ac
6 changed files with 53 additions and 69 deletions

View File

@@ -4,7 +4,7 @@ import { SimpleCard } from '../utils/SimpleCard';
type NotFoundProps = PropsWithChildren<{ to?: string }>;
const NotFound: FC<NotFoundProps> = ({ to = '/', children = 'Home' }) => (
export const NotFound: FC<NotFoundProps> = ({ to = '/', children = 'Home' }) => (
<div className="home">
<SimpleCard className="p-4">
<h2>Oops! We could not find requested route.</h2>
@@ -17,5 +17,3 @@ const NotFound: FC<NotFoundProps> = ({ to = '/', children = 'Home' }) => (
</SimpleCard>
</div>
);
export default NotFound;