blob: fc759f71a999f5a86a4f972a04fc4588709bc260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { describe, expect, it } from '@jest/globals';
import { render, screen } from '../../../../../tests/utils';
import { Fieldset } from '../fieldset';
import { Legend } from './legend';
describe('legend', () => {
it('renders the fieldset legend', () => {
const body = 'deserunt';
render(
<Fieldset>
<Legend>{body}</Legend>
</Fieldset>
);
expect(screen.getByRole('group')).toHaveTextContent(body);
});
});
|