Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: HichamELBSI <elabbassih@gmail.com>
  • Loading branch information
HichamELBSI committed Jan 24, 2022
1 parent a9e714e commit 0369846
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { createMemoryHistory } from 'history';
import { IntlProvider } from 'react-intl';
import { ThemeProvider, lightTheme } from '@strapi/design-system';
import InternalErrorPage from '../index';
import { useModels } from '../../../hooks';

jest.mock('../../../hooks', () => ({
useModels: jest.fn(),
}));

const history = createMemoryHistory();

Expand All @@ -24,12 +19,6 @@ const App = (
);

describe('InternalErrorPage', () => {
useModels.mockImplementation(() => ({
isLoading: false,
collectionTypes: [],
singleTypes: [],
}));

it('renders and matches the snapshot', () => {
const {
container: { firstChild },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { createMemoryHistory } from 'history';
import { IntlProvider } from 'react-intl';
import { ThemeProvider, lightTheme } from '@strapi/design-system';
import NotFoundPage from '../index';
import { useModels } from '../../../hooks';

jest.mock('../../../hooks', () => ({
useModels: jest.fn(),
}));

const history = createMemoryHistory();

Expand All @@ -24,12 +19,6 @@ const App = (
);

describe('NotFoundPage', () => {
useModels.mockImplementation(() => ({
isLoading: false,
collectionTypes: [],
singleTypes: [],
}));

it('renders and matches the snapshot', () => {
const {
container: { firstChild },
Expand Down

0 comments on commit 0369846

Please sign in to comment.