diff --git a/lib/DocumentFilter/DocumentFilterArray.test.js b/lib/DocumentFilter/DocumentFilterArray.test.js new file mode 100644 index 00000000..ba1b4d4e --- /dev/null +++ b/lib/DocumentFilter/DocumentFilterArray.test.js @@ -0,0 +1,124 @@ +import { MemoryRouter } from 'react-router-dom'; +import { screen } from'@testing-library/react'; +import { waitFor } from '@folio/jest-config-stripes/testing-library/react'; +import { renderWithIntl, Button, TestForm, Dropdown} from '@folio/stripes-erm-testing'; + +import { translationsProperties } from '../../test/jest/helpers'; + +import DocumentFilterArray from './DocumentFilterArray'; +const handleSubmit = jest.fn(); +const translatedContentOptions = [ + { + "value": "alternateNames", + "label": "Alternative names" + }, + { + "value": "agreementContentTypes", + "label": "Content types" + }, + { + "value": "contacts", + "label": "Internal contacts" + }, + { + "value": "orgs", + "label": "Organizations" + }, + { + "value": "items", + "label": "Agreement lines" + }, + { + "value": "linkedLicenses", + "label": "Linked licenses" + }, + { + "value": "externalLicenseDocs", + "label": "External licenses" + }, + { + "value": "supplementaryDocs", + "label": "Supplementary documents" + }, + { + "value": "usageDataProviders", + "label": "Usage data" + }, + { + "value": "relatedAgreements", + "label": "Related agreements" + }, + { + "value": "tags", + "label": "Tags" + } +]; +const onSubmit = jest.fn(); +jest.mock('./DocumentFilterField', () => () =>