Require accessToken to browse pages
This commit is contained in:
committed by
Anders Borch
parent
4655544197
commit
049664b98e
9
front/src/components/auth/__tests__/RequireAuth.test.tsx
Normal file
9
front/src/components/auth/__tests__/RequireAuth.test.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import { RequireAuthWithHelloChild } from '../__stories__/RequireAuth.stories';
|
||||
|
||||
it('Checks the Require Auth renders', () => {
|
||||
const { getAllByText } = render(<RequireAuthWithHelloChild />);
|
||||
|
||||
expect(getAllByText('Hello')).toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user