Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Terala-Priyanka committed Dec 10, 2024
1 parent 575389c commit a42a183
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ import { useOkapiKy } from '@folio/stripes/core';
import useRetrievalServicePoints from './useRetrievalServicePoints';
import { LOCATIONS_API, SERVICE_POINTS_API } from '../../constants';

const mockTenantId = 'tenantId';

jest.mock('@folio/stripes/core', () => ({
...jest.requireActual('@folio/stripes/core'),
useNamespace: jest.fn(() => ['test']),
useOkapiKy: jest.fn(),
useStripes: jest.fn(() => ({
okapi: {
tenant: mockTenantId,
},
})),
}));

const queryClient = new QueryClient();
const wrapper = ({ children }) => (
<QueryClientProvider client={queryClient}>
Expand Down

0 comments on commit a42a183

Please sign in to comment.