import '@testing-library/jest-dom';
import 'html-validate/jest';
import { cleanup, render } from '../../../test-utils';
import { SectionContent, SectionContentProps } from './SectionContent';
afterEach(cleanup);
function renderSectionContent(props?: Partial) {
return render(
Section content
);
}
describe('SectionContent', () => {
it('renders correctly', () => {
const { container } = renderSectionContent();
expect(container).toMatchSnapshot();
});
it('renders a valid HTML structure', () => {
const { container } = renderSectionContent();
expect(container).toHTMLValidate({
extends: ['html-validate:recommended'],
});
});
});