Require accessToken to browse pages

This commit is contained in:
Charles Bochet
2023-04-21 15:36:10 +02:00
committed by Anders Borch
parent 4655544197
commit 049664b98e
8 changed files with 115 additions and 27 deletions

View 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();
});