aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/nav/breadcrumb.test.tsx
blob: 68638ef9799a6133b1d17781d802c5c734c41c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { render, screen } from '@tests/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();
  });
});