diff --git a/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js b/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js index db17c7e68..8c9f87f31 100644 --- a/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js +++ b/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js @@ -21,6 +21,7 @@ const renderIncomingRecordMenu = props => { onToggle={noop} keyHandler={noop} incomingRecordOptions={MATCH_INCOMING_RECORD_TYPES} + {...props} /> ); diff --git a/src/settings/MatchProfiles/MatchProfilesForm.test.js b/src/settings/MatchProfiles/MatchProfilesForm.test.js index 0205bd6e9..259494077 100644 --- a/src/settings/MatchProfiles/MatchProfilesForm.test.js +++ b/src/settings/MatchProfiles/MatchProfilesForm.test.js @@ -1,6 +1,9 @@ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; -import { screen, fireEvent } from '@folio/jest-config-stripes/testing-library/react'; +import { + screen, + fireEvent, +} from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/utils/constants.js b/src/utils/constants.js index b7cad8390..fb09573f3 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -868,22 +868,3 @@ export const STATUS_CODES = { CONFLICT: 409, INTERNAL_SERVER_ERROR: 500, }; - -export const ALLOWED_INCOMING_RECORD_TYPES = { - [FOLIO_RECORD_TYPES.INSTANCE.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ - MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type, - MATCH_INCOMING_RECORD_TYPES.MARC_AUTHORITY.type, - ]), - [FOLIO_RECORD_TYPES.HOLDINGS.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ - MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type, - ]), - [FOLIO_RECORD_TYPES.ITEM.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ - MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type, - ]), - [FOLIO_RECORD_TYPES.MARC_BIBLIOGRAPHIC.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ - MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type, - ]), - [FOLIO_RECORD_TYPES.MARC_AUTHORITY.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ - MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type, - ]), -};