Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bosiraphael committed Dec 13, 2024
1 parent fc31cef commit cf1b1d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useUseAsDraftWorkflowVersionSingleRecordAction: SingleRecordActionH
trigger: workflowVersion.trigger,
}}
/>
) : null;
) : undefined;

return {
shouldBeRegistered,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { renderHook, waitFor } from '@testing-library/react';
import { act } from 'react';
import {
percentage,
sleep,
useExportFetchRecords,
percentage,
sleep,
useExportFetchRecords,
} from '../useExportFetchRecords';

import { PERSON_FRAGMENT_WITH_DEPTH_ZERO_RELATIONS } from '@/object-record/hooks/__mocks__/personFragments';
Expand Down Expand Up @@ -130,17 +130,15 @@ const mocks: MockedResponse[] = [
},
];

const WrapperWithResponse = getJestMetadataAndApolloMocksAndActionMenuWrapper(
{
apolloMocks: mocks,
componentInstanceId: 'recordIndexId',
contextStoreTargetedRecordsRule: {
mode: 'selection',
selectedRecordIds: [],
},
contextStoreCurrentObjectMetadataNameSingular: 'person',
const WrapperWithResponse = getJestMetadataAndApolloMocksAndActionMenuWrapper({
apolloMocks: mocks,
componentInstanceId: 'recordIndexId',
contextStoreTargetedRecordsRule: {
mode: 'selection',
selectedRecordIds: [],
},
);
contextStoreCurrentObjectMetadataNameSingular: 'person',
});

const graphqlEmptyResponse = [
{
Expand Down

0 comments on commit cf1b1d1

Please sign in to comment.