Skip to content

Commit

Permalink
Remove unused mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Oct 31, 2024
1 parent bc4ce8c commit bb7e3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions src/components/Task/Modal/Form/LogForm/TaskModalLogForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { SnackbarProvider } from 'notistack';
import TestRouter from '__tests__/util/TestRouter';
import { GqlMockedProvider } from '__tests__/util/graphqlMocking';
import { AssigneeOptionsQuery } from 'src/components/Contacts/ContactDetails/ContactDetailsTab/Other/EditContactOtherModal/EditContactOther.generated';
import { GetUserQuery } from 'src/components/User/GetUser.generated';
import { ActivityTypeEnum } from 'src/graphql/types.generated';
import useTaskModal from 'src/hooks/useTaskModal';
import { dispatch } from 'src/lib/analytics';
Expand Down Expand Up @@ -283,10 +282,7 @@ describe('TaskModalLogForm', () => {
const { findByRole, getByRole } = render(
<LocalizationProvider dateAdapter={AdapterLuxon}>
<SnackbarProvider>
<GqlMockedProvider<{
AssigneeOptions: AssigneeOptionsQuery;
GetUser: GetUserQuery;
}>
<GqlMockedProvider<{ AssigneeOptions: AssigneeOptionsQuery }>
mocks={{
AssigneeOptions: {
accountListUsers: {
Expand All @@ -297,11 +293,6 @@ describe('TaskModalLogForm', () => {
],
},
},
GetUser: {
user: {
id: 'user-1',
},
},
}}
onCall={mutationSpy}
>
Expand Down
11 changes: 1 addition & 10 deletions src/components/Task/Modal/Form/TaskModalForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { SnackbarProvider } from 'notistack';
import { GqlMockedProvider } from '__tests__/util/graphqlMocking';
import LoadConstantsMock from 'src/components/Constants/LoadConstantsMock';
import { AssigneeOptionsQuery } from 'src/components/Contacts/ContactDetails/ContactDetailsTab/Other/EditContactOtherModal/EditContactOther.generated';
import { GetUserQuery } from 'src/components/User/GetUser.generated';
import { ActivityTypeEnum, PhaseEnum } from 'src/graphql/types.generated';
import useTaskModal from 'src/hooks/useTaskModal';
import theme from 'src/theme';
Expand Down Expand Up @@ -343,10 +342,7 @@ describe('TaskModalForm', () => {
const { getByRole } = render(
<LocalizationProvider dateAdapter={AdapterLuxon}>
<SnackbarProvider>
<GqlMockedProvider<{
AssigneeOptions: AssigneeOptionsQuery;
GetUser: GetUserQuery;
}>
<GqlMockedProvider<{ AssigneeOptions: AssigneeOptionsQuery }>
mocks={{
AssigneeOptions: {
accountListUsers: {
Expand All @@ -357,11 +353,6 @@ describe('TaskModalForm', () => {
],
},
},
GetUser: {
user: {
id: 'user-1',
},
},
}}
onCall={mutationSpy}
>
Expand Down

0 comments on commit bb7e3fc

Please sign in to comment.