blob: 4d8c942dcf415fba2a29d13723c5a6b7429a6772 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { Nav } from './nav';
describe('Nav', () => {
  it('renders the contents of a nav', () => {
    const children = 'The nav content.';
    render(<Nav>{children}</Nav>);
    expect(rtlScreen.getByRole('navigation')).toHaveTextContent(children);
  });
});
 |