mirror of https://github.com/kremalicious/blog.git
12 lines
366 B
TypeScript
12 lines
366 B
TypeScript
import React from 'react'
|
|
import { render, waitFor } from '@testing-library/react'
|
|
import Thanks from '../thanks'
|
|
|
|
describe('/thanks', () => {
|
|
it('renders without crashing', async () => {
|
|
const { container } = render(<Thanks />)
|
|
const lazyElement = await waitFor(() => container.querySelector('button'))
|
|
expect(lazyElement).toBeInTheDocument()
|
|
})
|
|
})
|