mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
11 lines
300 B
TypeScript
11 lines
300 B
TypeScript
import { render } from '@testing-library/react'
|
|
import { ReactElement } from 'react'
|
|
|
|
export default function testRender(component: ReactElement): void {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(component)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
}
|