mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-14 08:03:14 +01:00
16 lines
489 B
TypeScript
16 lines
489 B
TypeScript
|
import { render } from '@testing-library/react'
|
||
|
|
||
|
import { ErrorPage } from '../ErrorPage'
|
||
|
|
||
|
describe('<ErrorPage />', () => {
|
||
|
it('should render the message and statusCode', async () => {
|
||
|
const messageContent = 'message content'
|
||
|
const statusCode = 404
|
||
|
const { getByText } = render(
|
||
|
<ErrorPage statusCode={statusCode} message={messageContent} />
|
||
|
)
|
||
|
expect(getByText(messageContent)).toBeInTheDocument()
|
||
|
expect(getByText(statusCode)).toBeInTheDocument()
|
||
|
})
|
||
|
})
|