import { render } from '@testing-library/react-native' import * as React from 'react' import 'react-native' import { Provider } from 'react-redux' import GoldEducation from 'src/account/GoldEducation' import { createMockStore } from 'test/utils' it('renders correctly', () => { const tree = render( ) expect(tree).toMatchSnapshot() }) it('shows the close button when celoEducationCompleted is false', () => { const { getByTestId } = render( ) expect(getByTestId('Education/top').findByProps({ testID: 'Education/CloseIcon' })).toBeTruthy() }) it('shows the close button when celoEducationCompleted is true', () => { const { getByTestId } = render( ) expect(getByTestId('Education/top').findByProps({ testID: 'Education/CloseIcon' })).toBeTruthy() })