1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-15 17:45:31 +01:00
blog/jest/testRender.js

12 lines
256 B
JavaScript
Raw Normal View History

2019-05-30 22:59:07 +02:00
import { render } from '@testing-library/react'
2019-05-02 21:11:52 +02:00
const testRender = component => {
it('renders without crashing', () => {
const { container } = render(component)
expect(container.firstChild).toBeInTheDocument()
})
}
export default testRender