aboutsummaryrefslogtreecommitdiff
path: root/src/components/error/error.test.tsx
blob: 9cd67f93804bba12bc17309fa423c19234678e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { render } from '@testing-library/react'

import Error from './error'

test('Error renders', () => {
  const { container } = render(
    <Error
      code="404"
      title="Page not found."
      description="Sorry, we couldn't find the page you're looking for."
    />
  )
  const error = container.firstElementChild!

  expect(error).toMatchSnapshot()
})