mirror of
https://github.com/Thream/website.git
synced 2024-07-21 09:28:32 +02:00
11 lines
270 B
TypeScript
11 lines
270 B
TypeScript
|
import { render } from '@testing-library/react'
|
||
|
|
||
|
import { Button } from '../Button'
|
||
|
|
||
|
describe('<Button />', () => {
|
||
|
it('should render', async () => {
|
||
|
const { getByText } = render(<Button>Submit</Button>)
|
||
|
expect(getByText('Submit')).toBeInTheDocument()
|
||
|
})
|
||
|
})
|