mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-10 06:18:07 +01:00
12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
|
import { render } from '@testing-library/react'
|
||
|
|
||
|
import { Input } from '../Input'
|
||
|
|
||
|
describe('<Input />', () => {
|
||
|
it('should render the label', async () => {
|
||
|
const labelContent = 'label content'
|
||
|
const { getByText } = render(<Input label={labelContent} />)
|
||
|
expect(getByText(labelContent)).toBeInTheDocument()
|
||
|
})
|
||
|
})
|