12 lines
329 B
TypeScript
12 lines
329 B
TypeScript
|
import { render } from '@testing-library/react'
|
||
|
|
||
|
import { Tooltip } from '../Tooltip'
|
||
|
|
||
|
describe('<Tooltip />', () => {
|
||
|
it('should render with content', async () => {
|
||
|
const content = 'tooltip content'
|
||
|
const { getByText } = render(<Tooltip content={content} />)
|
||
|
expect(getByText(content)).toBeInTheDocument()
|
||
|
})
|
||
|
})
|