import * as React from 'react'; import Headline, {HEADLINE_AS} from './Headline'; import {render} from '@testing-library/react'; import {testA11y} from '../../axe'; describe('Headline', () => { it('render', () => { const headline = render(Test); expect(headline.getByRole('heading')).toBeTruthy(); }); it('type', () => { const headline = render(Test); expect(headline.getByRole('heading').tagName).toEqual('H3'); }); describe('a11y', () => { it('should have no a11y violations', async () => { await testA11y(Read more); }); }); });