chore: initial commit

This commit is contained in:
Divlo
2021-10-24 05:19:39 +02:00
commit 21123c4477
145 changed files with 48821 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import { render } from '@testing-library/react'
import { ErrorPage } from '../ErrorPage'
describe('<ErrorPage />', () => {
it('should render with message and statusCode', async () => {
const message = 'Error'
const statusCode = 404
const { getByText } = render(
<ErrorPage statusCode={statusCode} message={message} />
)
expect(getByText(message)).toBeInTheDocument()
expect(getByText(statusCode)).toBeInTheDocument()
})
})