blob: 5c55589c61320bd7bb860ad0fae8ba13b0692a68 (
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 { Aside } from './aside';
describe('Aside', () => {
it('renders the contents of an aside', () => {
const children = 'The aside content.';
render(<Aside>{children}</Aside>);
expect(rtlScreen.getByRole('complementary')).toHaveTextContent(children);
});
});
|