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