Skip to content
Snippets Groups Projects

feat(search drawer: content accordion): implemented content accordion with dummy data

3 unresolved threads
20 files
+ 358
50
Compare changes
  • Side-by-side
  • Inline
Files
20
import { render, RenderResult, screen } from '@testing-library/react';
import {
BioEntitiesSubmapItem,
BioEntitiesSubmapItemProps,
} from './BioEntitiesSubmapItem.component';
const renderComponent = ({ mapName, numberOfEntities }: BioEntitiesSubmapItemProps): RenderResult =>
render(<BioEntitiesSubmapItem mapName={mapName} numberOfEntities={numberOfEntities} />);
describe('BioEntitiesSubmapItem - component', () => {
it('should display map name,number of elements, icon', () => {
renderComponent({ mapName: 'main map', numberOfEntities: 21 });
expect(screen.getByText('main map (21)')).toBeInTheDocument();
});
});
Loading