aboutsummaryrefslogtreecommitdiff
path: root/src/components/header/header.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/header/header.test.tsx')
-rw-r--r--src/components/header/header.test.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/header/header.test.tsx b/src/components/header/header.test.tsx
new file mode 100644
index 0000000..474e84d
--- /dev/null
+++ b/src/components/header/header.test.tsx
@@ -0,0 +1,14 @@
+import { render } from '@testing-library/react'
+
+import Header from './header'
+
+jest.mock('next/router', () => ({
+ useRouter: jest.fn()
+}))
+
+test('Header renders', () => {
+ const { container } = render(<Header />)
+ const header = container.firstElementChild!
+
+ expect(header).toMatchSnapshot()
+})