Store refresh token on login
This commit is contained in:
7
front/src/pages/auth/__tests__/Callback.test.tsx
Normal file
7
front/src/pages/auth/__tests__/Callback.test.tsx
Normal file
@ -0,0 +1,7 @@
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import { CallbackDefault } from '../__stories__/Callback.stories';
|
||||
|
||||
it('Checks the Callback page render', () => {
|
||||
render(<CallbackDefault />);
|
||||
});
|
||||
15
front/src/pages/auth/__tests__/Login.test.tsx
Normal file
15
front/src/pages/auth/__tests__/Login.test.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { render } from '@testing-library/react';
|
||||
import { LoginDefault } from '../__stories__/Login.stories';
|
||||
|
||||
const assignMock = jest.fn();
|
||||
|
||||
delete window.location;
|
||||
window.location = { assign: assignMock };
|
||||
|
||||
afterEach(() => {
|
||||
assignMock.mockClear();
|
||||
});
|
||||
|
||||
it('Checks the Login page render', () => {
|
||||
render(<LoginDefault />);
|
||||
});
|
||||
Reference in New Issue
Block a user