Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Jan 29, 2024
1 parent fc11e50 commit 6bc9922
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ import {
} from '../../../../constants';
import {
useBulkOperationDetails,
useRecordsPreview,
} from '../../../../hooks/api';
import BulkEditInAppPreviewModal from './BulkEditInAppPreviewModal';

jest.mock('../../../../hooks/api', () => ({
...jest.requireActual('../../../../hooks/api'),
useBulkOperationDetails: jest.fn(),
useRecordsPreview: jest.fn(),
}));

const bulkOperation = bulkEditLogsData[0];
Expand Down Expand Up @@ -63,6 +65,15 @@ describe('BulkEditInAppPreviewModal', () => {
bulkDetails: bulkOperation,
});

useRecordsPreview.mockClear().mockReturnValue({
isLoading: false,
refetch: jest.fn(),
isFetching: false,
contentData: [],
columnMapping: {},
columns: [],
});

useOkapiKy
.mockClear()
.mockReturnValue({
Expand Down

0 comments on commit 6bc9922

Please sign in to comment.