Skip to content

Commit

Permalink
- test update
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Herrera authored and Eduardo Herrera committed Jul 13, 2023
1 parent 0f4399e commit d742751
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useDocumentGenerationRepository } from '@/features/documents/hooks/useD
import { useAcquisitionProvider } from '@/hooks/repositories/useAcquisitionProvider';
import { useH120CategoryRepository } from '@/hooks/repositories/useH120CategoryRepository';
import { useInterestHolderRepository } from '@/hooks/repositories/useInterestHolderRepository';
import { useCompensationRequisitionRepository } from '@/hooks/repositories/useRequisitionCompensationRepository';
import { mockAcquisitionFileResponse } from '@/mocks/acquisitionFiles.mock';
import { getMockApiCompensationList } from '@/mocks/compensations.mock';
import { Api_AcquisitionFile } from '@/models/api/AcquisitionFile';
Expand All @@ -23,6 +24,7 @@ const getAcquisitionPropertiesFn = jest.fn();
const getAcquisitionCompReqH120s = jest.fn();
const getH120sCategoryFn = jest.fn();
const getInterestHolderFn = jest.fn();
const getCompensationRequisitionPayeeFn = jest.fn();

jest.mock('@/features/documents/hooks/useDocumentGenerationRepository');
(useDocumentGenerationRepository as jest.Mock).mockImplementation(() => ({
Expand All @@ -44,6 +46,10 @@ jest.mock('@/hooks/repositories/useInterestHolderRepository');
(useInterestHolderRepository as jest.Mock).mockImplementation(() => ({
getAcquisitionInterestHolders: { execute: getInterestHolderFn },
}));
jest.mock('@/hooks/repositories/useRequisitionCompensationRepository');
(useCompensationRequisitionRepository as jest.Mock).mockImplementation(() => ({
getCompensationRequisitionPayee: { execute: getCompensationRequisitionPayeeFn },
}));

let currentStore: MockStoreEnhanced<any, {}>;
const mockStore = configureMockStore([thunk]);
Expand Down

0 comments on commit d742751

Please sign in to comment.