diff options
Diffstat (limited to 'src/components/error/error.test.tsx')
| -rw-r--r-- | src/components/error/error.test.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/error/error.test.tsx b/src/components/error/error.test.tsx new file mode 100644 index 0000000..9cd67f9 --- /dev/null +++ b/src/components/error/error.test.tsx @@ -0,0 +1,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() +}) |
