import { render, screen } from '@testing-library/react'; import { ComponentKind } from '../../../../types'; import { ComponentRelationStatusIcon } from '../ComponentRelationStatusIcon'; describe('ComponentRelationStatusIcon', () => { it('should render the icon if build nudge ref is present', () => { render( , ); expect(screen.queryByAltText('Component is in a relationship icon')).toBeInTheDocument(); }); it('should render the icon if build nudge by is present', () => { render( , ); expect(screen.queryByAltText('Component is in a relationship icon')).toBeInTheDocument(); }); it('should not render the icon if build nudge by and build nudge ref is not present', () => { render( , ); expect(screen.queryByAltText('Component is in a relationship icon')).not.toBeInTheDocument(); }); });