fix tests

This commit is contained in:
Pavel Mineev
2022-02-07 23:33:32 +01:00
committed by Ksinia
parent 69b110e36b
commit 3e12ca4074
2 changed files with 1 additions and 8 deletions
+1 -4
View File
@@ -11,10 +11,6 @@ import * as utils from './auth.utils';
import * as api from './auth.api';
import { getProviderData } from './components/oauth.utils';
jest.mock('react-redux', () => ({
useDispatch: () => jest.fn(),
}));
jest.mock('hooks/useTheme', () => ({
useTheme: () => 'light',
}));
@@ -243,6 +239,7 @@ describe('<Auth/>', () => {
StaticStore.config.auth_providers = ['email'];
const { getByText, getByPlaceholderText } = render(<Auth />);
fireEvent.click(getByText('Sign In'));
const input = getByPlaceholderText('Username');
@@ -9,10 +9,6 @@ import { BASE_URL } from 'common/constants.config';
import { OAuth } from './oauth';
import * as api from './oauth.api';
jest.mock('react-redux', () => ({
useDispatch: () => jest.fn(),
}));
jest.mock('hooks/useTheme', () => ({
useTheme: () => 'light',
}));