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