From 894621cbf347485010de612b0f7fec74bdd26778 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 14 Apr 2022 22:30:45 +0200
Subject: chore: add a Toolbar component

---
 src/components/organisms/toolbar/toolbar.test.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/components/organisms/toolbar/toolbar.test.tsx

(limited to 'src/components/organisms/toolbar/toolbar.test.tsx')

diff --git a/src/components/organisms/toolbar/toolbar.test.tsx b/src/components/organisms/toolbar/toolbar.test.tsx
new file mode 100644
index 0000000..4bfe8a8
--- /dev/null
+++ b/src/components/organisms/toolbar/toolbar.test.tsx
@@ -0,0 +1,16 @@
+import { render, screen } from '@test-utils';
+import Toolbar from './toolbar';
+
+const nav = [
+  { id: 'home-link', href: '/', label: 'Home' },
+  { id: 'blog-link', href: '/blog', label: 'Blog' },
+  { id: 'cv-link', href: '/cv', label: 'CV' },
+  { id: 'contact-link', href: '/contact', label: 'Contact' },
+];
+
+describe('Toolbar', () => {
+  it('renders a navigation menu', () => {
+    render(<Toolbar nav={nav} />);
+    expect(screen.getByRole('navigation')).toBeInTheDocument();
+  });
+});
-- 
cgit v1.2.3

