aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/nav/nav-list/nav-list.test.tsx
blob: ac086810bac07b3b4be285f784b3420902f439ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { NavList } from './nav-list';

describe('NavList', () => {
  it('renders its children', () => {
    render(
      <NavList>
        <li>Nav item</li>
      </NavList>
    );

    expect(rtlScreen.getByRole('list')).toBeInTheDocument();
  });
});