2022-10-31 07:58:51 +00:00
|
|
|
import {render, screen} from '@testing-library/react-native'
|
|
|
|
import React from 'react'
|
|
|
|
import 'react-native'
|
|
|
|
import BestList from '../BestList'
|
|
|
|
import {MockProviders} from '../mock-providers'
|
2022-10-29 23:56:58 +00:00
|
|
|
|
|
|
|
it('renders correctly', () => {
|
|
|
|
render(
|
|
|
|
<MockProviders>
|
|
|
|
<BestList />
|
|
|
|
</MockProviders>,
|
2022-10-31 07:58:51 +00:00
|
|
|
)
|
|
|
|
expect(screen.getByText('Best')).toBeDefined()
|
|
|
|
expect(screen.getByPlaceholderText('Search')).toBeDefined()
|
|
|
|
})
|