aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/sidebar.test.tsx
blob: 6fdb24ac4b85c45e20cdcb6ed72e7eb421c5ef0d (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);
  });
});