import * as React from 'react'; import { BreadcrumbHeading } from '../BreadcrumbHeading'; import { render } from '@testing-library/react'; describe('BreadcrumbHeading component', () => { test('should render default breadcrumbHeading', () => { const { asFragment } = render(Item); expect(asFragment()).toMatchSnapshot(); }); test('should pass classname', () => { const { asFragment } = render(Item); expect(asFragment()).toMatchSnapshot(); }); test('should pass custom id', () => { const { asFragment } = render(Item); expect(asFragment()).toMatchSnapshot(); }); test('should render link breadcrumbTitle', () => { const { asFragment } = render(Item); expect(asFragment()).toMatchSnapshot(); }); test('should render breadcrumbHeading with target', () => { const { asFragment } = render( Item ); expect(asFragment()).toMatchSnapshot(); }); });