1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-15 00:23:13 +01:00
.profile/components/design/__test__/Input.test.tsx

12 lines
329 B
TypeScript
Raw Normal View History

2021-04-20 18:23:05 +02:00
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()
})
})