1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Created basic tests

This commit is contained in:
Zhiyuan Zheng
2020-12-28 00:59:57 +01:00
parent 0ee30de03e
commit 66385fd0f4
15 changed files with 3803 additions and 125 deletions

View File

@ -0,0 +1,15 @@
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()
})
})