mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
13 lines
315 B
TypeScript
13 lines
315 B
TypeScript
|
import { render } from '@testing-library/react'
|
||
|
import { ReactElement } from 'react'
|
||
|
|
||
|
const testRender = (component: ReactElement): void => {
|
||
|
it('renders without crashing', () => {
|
||
|
const { container } = render(component)
|
||
|
|
||
|
expect(container.firstChild).toBeInTheDocument()
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export default testRender
|