import * as React from 'react';
import Subheadline from './Subheadline';
import {render} from '@testing-library/react';
import {SUBHEADLINE_AS} from './subheadlineConsts';
import {testA11y} from '../../axe';
describe('Subheadline', () => {
it('render', () => {
const subheadline = render(Test);
expect(subheadline.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);
});
});
});