aboutsummaryrefslogtreecommitdiff
path: root/src/components/error/error.test.tsx
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-30 23:16:07 -0500
committerBobby <[email protected]>2022-11-30 23:16:07 -0500
commitdaaa789068cebb5fdfcea6197ade6e663be46e0f (patch)
tree1cd315851b779ac28fe622da332c3c16fe1c433c /src/components/error/error.test.tsx
downloadtcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.tar.xz
tcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.zip
socialify update
Diffstat (limited to 'src/components/error/error.test.tsx')
-rw-r--r--src/components/error/error.test.tsx16
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()
+})