From 714273556f5278746a4022d0e87153ff431a61cf Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 11 Apr 2022 22:56:43 +0200
Subject: chore: add a Breadcrumb component

---
 src/components/molecules/nav/breadcrumb.test.tsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 src/components/molecules/nav/breadcrumb.test.tsx

(limited to 'src/components/molecules/nav/breadcrumb.test.tsx')

diff --git a/src/components/molecules/nav/breadcrumb.test.tsx b/src/components/molecules/nav/breadcrumb.test.tsx
new file mode 100644
index 0000000..43220c9
--- /dev/null
+++ b/src/components/molecules/nav/breadcrumb.test.tsx
@@ -0,0 +1,15 @@
+import { render, screen } from '@test-utils';
+import Breadcrumb, { type BreadcrumbItem } from './breadcrumb';
+
+const items: BreadcrumbItem[] = [
+  { id: 'home', url: '#', name: 'Home' },
+  { id: 'blog', url: '#', name: 'Blog' },
+  { id: 'post1', url: '#', name: 'A Post' },
+];
+
+describe('Breadcrumb', () => {
+  it('renders a navigation', () => {
+    render(<Breadcrumb items={items} />);
+    expect(screen.getByRole('navigation')).toBeInTheDocument();
+  });
+});
-- 
cgit v1.2.3

