Socialify

Folder ..

Viewing error.test.tsx
16 lines (13 loc) • 365.0 B

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