aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/sidebar.test.tsx
blob: e2c15c3a7e07f4690c4c0ba93692a4fc0af2c6f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { render, screen } from '../../../../tests/utils';
import { Sidebar } from './sidebar';

const children = 'A widget';

describe('Sidebar', () => {
  it('renders an aside element', () => {
    render(<Sidebar>{children}</Sidebar>);
    expect(screen.getByRole('complementary')).toHaveTextContent(children);
  });
});