mirror of
https://github.com/tooot-app/app
synced 2024-12-12 17:18:45 +01:00
16 lines
391 B
JavaScript
16 lines
391 B
JavaScript
import React from 'react'
|
|
import { cleanup, render } from '@testing-library/react-native/pure'
|
|
|
|
import MenuHeader from '@components/Menu/Header'
|
|
|
|
describe('Testing component menu header', () => {
|
|
afterEach(cleanup)
|
|
|
|
it('with text only', () => {
|
|
const { getByText, toJSON } = render(<MenuHeader heading='test' />)
|
|
|
|
getByText('test')
|
|
expect(toJSON()).toMatchSnapshot()
|
|
})
|
|
})
|