aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/nav/breadcrumb.test.tsx
blob: 8aa0d635cd35a68aac6b30fc0cca4a5443bff6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { describe, expect, it } from '@jest/globals';
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();
  });
});