import { render, screen } from '../test-utils';
import Section from '.';
describe('Section', () => {
it('can render children', () => {
render();
expect(screen.getByText('Children here')).toBeInTheDocument();
});
it('passes `id` to the element', () => {
render();
expect(screen.getByText('Children here')).toHaveAttribute('id', 'section-id');
});
it('renders `Section.Header`', () => {
render(
,
);
expect(screen.getByRole('heading', { name: 'Section title' })).toBeInTheDocument();
});
});