Skip to content
Snippets Groups Projects

Resolve "validation of bioEntity response"

Merged Piotr Gawron requested to merge 294-validation-of-bioentity-response into development
12 files
+ 64
20
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -17,6 +17,7 @@ import { getReduxStoreWithActionsListener } from '@/utils/testing/getReduxStoreA
import { InitialStoreState } from '@/utils/testing/getReduxWrapperWithStore';
import { act, render, screen } from '@testing-library/react';
import { MockStoreEnhanced } from 'redux-mock-store';
import { getTypeBySBOTerm } from '@/utils/bioEntity/getTypeBySBOTerm';
import { BioEntityDrawer } from './BioEntityDrawer.component';
const renderComponent = (
@@ -91,7 +92,9 @@ describe('BioEntityDrawer - component', () => {
},
});
expect(screen.getByText(bioEntity.stringType, { exact: false })).toBeInTheDocument();
const bioEntityType = getTypeBySBOTerm(bioEntity.sboTerm);
expect(screen.getByText(bioEntityType, { exact: false })).toBeInTheDocument();
expect(screen.getByText(bioEntity.name, { exact: false })).toBeInTheDocument();
});
Loading