Skip to content

Commit

Permalink
Merge pull request #1075 from folio-org/UICIRC-987
Browse files Browse the repository at this point in the history
UICIRC-987: Remove outdated imports
  • Loading branch information
Dmitriy-Litvinenko authored Oct 3, 2023
2 parents 284974e + ed3ed2b commit 003c34c
Show file tree
Hide file tree
Showing 91 changed files with 1 addition and 262 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
* Restore previously deleted Jest/RTL tests that were failing. Refs UICIRC-971.
* Add "hour" to the time frequency for reminder fees. Fixes UICIRC-983.
* Freeze the first five selection menus for reminder fees. Refs UICIRC-982.
* Remove outdated imports. Refs UICIRC-987.

## [8.0.1](https://github.com/folio-org/ui-circulation/tree/v8.0.1) (2023-03-07)
[Full Changelog](https://github.com/folio-org/ui-circulation/compare/v8.0.0...v8.0.1)
Expand Down
3 changes: 0 additions & 3 deletions src/settings/CheckoutSettings/CheckoutSettings.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { render } from '@folio/jest-config-stripes/testing-library/react';
import { omit } from 'lodash';

import '../../../test/jest/__mock__';

import { ConfigManager } from '@folio/stripes/smart-components';

import CheckoutSettings, {
Expand Down
3 changes: 0 additions & 3 deletions src/settings/CheckoutSettings/CheckoutSettingsForm.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React from 'react';
import {
render,
screen,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import CheckoutSettingsForm, {
getCustomFieldPatronIdentifiers,
} from './CheckoutSettingsForm';
Expand Down
3 changes: 0 additions & 3 deletions src/settings/FinePolicy/FinePolicyDetail.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import {
Accordion,
AccordionSet,
Expand Down
3 changes: 0 additions & 3 deletions src/settings/FinePolicy/FinePolicyForm.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import {
Accordion,
AccordionSet,
Expand Down
3 changes: 0 additions & 3 deletions src/settings/FinePolicy/FinePolicySettings.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';
import {
render,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { EntryManager } from '@folio/stripes/smart-components';

import withPreventDelete from '../wrappers/withPreventDelete';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';
import {
render,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import {
Accordion,
} from '@folio/stripes/components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import OverdueAboutSection from './OverdueAboutSection';

const labelIds = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { Field } from 'react-final-form';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { Field } from 'react-final-form';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React from 'react';
import { render } from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { FieldArray } from 'react-final-form-arrays';

import ReminderFeesFields from './ReminderFeesFields';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { render } from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import ReminderFeesSection from './ReminderFeesSection';

describe('ReminderFeesSection', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { FormattedMessage } from 'react-intl';

import FinesSection, {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import OverdueAboutSection from './OverdueAboutSection';

const testIds = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { render } from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import ReminderFeesSection, { generateFormatter } from './ReminderFeesSection';

const getCheckboxValue = jest.fn(() => null);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { ViewMetaData } from '@folio/stripes/smart-components';
import {
AccordionSet,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
fireEvent,
waitFor,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import {
Accordion,
AccordionSet,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { EntryManager } from '@folio/stripes/smart-components';

import FixedDueDateScheduleDetail from './FixedDueDateScheduleDetail';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import { IntlProvider } from 'react-intl';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import SchedulesList from './SchedulesList';

const mockedSchedules = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {
render,
screen,
Expand All @@ -7,8 +6,6 @@ import {
} from '@folio/jest-config-stripes/testing-library/react';
import moment from 'moment-timezone';

import '../../../../../../../test/jest/__mock__';

import { FormattedMessage } from 'react-intl';
import {
Datepicker,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {
render,
screen,
Expand All @@ -10,8 +9,6 @@ import {
uniqueId,
} from 'lodash';

import '../../../../../../../test/jest/__mock__';

import SchedulesList from './SchedulesList';
import ScheduleCard from '../ScheduleCard';

Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanHistory/ExceptionCard.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { Field } from 'react-final-form';

import {
Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanHistory/ExceptionsList.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';
import userEvent from '@folio/jest-config-stripes/testing-library/user-event';

import '../../../test/jest/__mock__';

import ExceptionCard from './ExceptionCard';
import ExceptionsList from './ExceptionsList';

Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanHistory/LoanHistoryForm.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { Field } from 'react-final-form';
import { FieldArray } from 'react-final-form-arrays';
import {
Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanHistory/LoanHistorySettings.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React from 'react';
import { render } from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { ConfigManager } from '@folio/stripes/smart-components';

import LoanHistorySettings, {
Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanPolicy/LoanPolicyDetail.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import {
Accordion,
AccordionSet,
Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanPolicy/LoanPolicyForm.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import {
render,
screen,
within,
fireEvent,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import {
Accordion,
ExpandAllButton,
Expand Down
3 changes: 0 additions & 3 deletions src/settings/LoanPolicy/LoanPolicySettings.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';
import {
render,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../test/jest/__mock__';

import { EntryManager } from '@folio/stripes/smart-components';

import LoanPolicyDetail from './LoanPolicyDetail';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import {
TextArea,
TextField,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React from 'react';
import { render } from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { Field } from 'react-final-form';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { Field } from 'react-final-form';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React from 'react';
import {
render,
screen,
within,
} from '@folio/jest-config-stripes/testing-library/react';

import '../../../../../../test/jest/__mock__';

import { Field } from 'react-final-form';
import {
Checkbox,
Expand Down
Loading

0 comments on commit 003c34c

Please sign in to comment.