12 lines
372 B
TypeScript
12 lines
372 B
TypeScript
import { render } from '@testing-library/react'
|
|
import Repo from '@/types/repo'
|
|
import Repositories from '.'
|
|
import repos from '../../../tests/__fixtures__/repos.json'
|
|
|
|
describe('Repositories', () => {
|
|
it('renders correctly', () => {
|
|
const { container } = render(<Repositories repos={repos as Repo[]} />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|