maccounter
18 строк · 595.0 Байт
1import React from 'react'
2import { compareSnapshot } from '@testUtils/renderSnapshot'
3import { Provider } from 'react-redux'
4import store from '@store/redux-store'
5import { WithChildren } from '@localTypes/BaseProps'
6import ContentPage from '../ContentPage'
7
8describe('ContentPage', () => {
9const renderComponent = <ContentPage />
10const wrapper: React.FC<WithChildren> = ({ children }) => (
11<Provider store={store}>
12{children}
13</Provider>
14)
15
16// eslint-disable-next-line
17it('render ContentPage', () => compareSnapshot(renderComponent, wrapper))
18})
19