mirror of https://github.com/kremalicious/blog.git
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
|
|
import Home from '../index'
|
|
import data from '../../../.jest/__fixtures__/home.json'
|
|
|
|
describe('/', () => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(<Home data={data} />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|