Skip to content

Commit

Permalink
UIDATIMP-1503: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna committed Sep 25, 2023
1 parent 9500362 commit 4eaa8d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const renderIncomingRecordMenu = props => {
onToggle={noop}
keyHandler={noop}
incomingRecordOptions={MATCH_INCOMING_RECORD_TYPES}
{...props}
/>
);

Expand Down
5 changes: 4 additions & 1 deletion src/settings/MatchProfiles/MatchProfilesForm.test.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
19 changes: 0 additions & 19 deletions src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]),
};

0 comments on commit 4eaa8d3

Please sign in to comment.