1
0
mirror of https://github.com/tooot-app/app synced 2024-12-12 00:57:28 +01:00
tooot/__tests__/components/Menu/Header.js

16 lines
391 B
JavaScript
Raw Normal View History

2020-12-28 00:59:57 +01:00
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()
})
})