Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Dec 20, 2024
1 parent 6e52a06 commit 6a78ab5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/hooks/useIntegrationConfigs/useIntegrationConfigs.test.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import React from 'react';
import { renderHook } from '@testing-library/react-hooks';
import {
QueryClient,
QueryClientProvider,
} from 'react-query';
import { renderHook } from '@testing-library/react-hooks';

import { useOkapiKy } from '@folio/stripes/core';

import { LIMIT_MAX } from '../../constants';

import { useIntegrationConfigs } from './useIntegrationConfigs';

const queryClient = new QueryClient();

// eslint-disable-next-line react/prop-types
const wrapper = ({ children }) => (
<QueryClientProvider client={queryClient}>
{children}
Expand Down Expand Up @@ -54,9 +50,10 @@ describe('useIntegrationConfigs', () => {
'data-export-spring/configs',
{
searchParams: {
query: `configName==EDIFACT_ORDERS_EXPORT_${organizationId}*`,
query: `configName==("CLAIMS_${organizationId}*" or "EDIFACT_ORDERS_EXPORT_${organizationId}*")`,
limit: LIMIT_MAX,
},
signal: expect.any(AbortSignal),
},
);
});
Expand Down

0 comments on commit 6a78ab5

Please sign in to comment.