diff --git a/public/app/core/components/Breadcrumbs/Breadcrumbs.test.tsx b/public/app/core/components/Breadcrumbs/Breadcrumbs.test.tsx new file mode 100644 index 00000000000..af1897b747f --- /dev/null +++ b/public/app/core/components/Breadcrumbs/Breadcrumbs.test.tsx @@ -0,0 +1,43 @@ +import { render, screen, within } from '@testing-library/react'; +import React from 'react'; + +import { Breadcrumbs } from './Breadcrumbs'; +import { Breadcrumb } from './types'; + +const mockBreadcrumbs: Breadcrumb[] = [ + { text: 'Home', href: '/home', icon: 'home-alt' }, + { text: 'First', href: '/first' }, + { text: 'Second', href: '/second' }, +]; + +describe('Breadcrumbs', () => { + it('should render without error', () => { + expect(() => render()).not.toThrow(); + }); + + it('should render a