1
0
Fork 0
blog/src/pages/__tests__/thanks.test.tsx

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()
})
})