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(
); expect(screen.getByRole('group')).toHaveTextContent(body); }); });