summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/nav/breadcrumb.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-11 22:56:43 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-11 22:56:43 +0200
commit714273556f5278746a4022d0e87153ff431a61cf (patch)
treed87f8df0d04abb66acba1079b0d55732ae5d3f8f /src/components/molecules/nav/breadcrumb.test.tsx
parent62f06c40a4eac6d11f1a93f3b49dfe6c48ce16f8 (diff)
chore: add a Breadcrumb component
Diffstat (limited to 'src/components/molecules/nav/breadcrumb.test.tsx')
-rw-r--r--src/components/molecules/nav/breadcrumb.test.tsx15
1 files changed, 15 insertions, 0 deletions
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();
+ });
+});