From 5c91ce8cd37224e4ed801deb34a93fa6ceb76d1c Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Thu, 31 Oct 2024 15:46:48 -0500 Subject: [PATCH] Remove unused mocks --- .../Task/Modal/Form/LogForm/TaskModalLogForm.test.tsx | 11 +---------- src/components/Task/Modal/Form/TaskModalForm.test.tsx | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/components/Task/Modal/Form/LogForm/TaskModalLogForm.test.tsx b/src/components/Task/Modal/Form/LogForm/TaskModalLogForm.test.tsx index b39cec626b..44610d138d 100644 --- a/src/components/Task/Modal/Form/LogForm/TaskModalLogForm.test.tsx +++ b/src/components/Task/Modal/Form/LogForm/TaskModalLogForm.test.tsx @@ -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'; @@ -283,10 +282,7 @@ describe('TaskModalLogForm', () => { const { findByRole, getByRole } = render( - + mocks={{ AssigneeOptions: { accountListUsers: { @@ -297,11 +293,6 @@ describe('TaskModalLogForm', () => { ], }, }, - GetUser: { - user: { - id: 'user-1', - }, - }, }} onCall={mutationSpy} > diff --git a/src/components/Task/Modal/Form/TaskModalForm.test.tsx b/src/components/Task/Modal/Form/TaskModalForm.test.tsx index d3a36f46b0..f4a67f47d9 100644 --- a/src/components/Task/Modal/Form/TaskModalForm.test.tsx +++ b/src/components/Task/Modal/Form/TaskModalForm.test.tsx @@ -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'; @@ -337,10 +336,7 @@ describe('TaskModalForm', () => { const { getByRole } = render( - + mocks={{ AssigneeOptions: { accountListUsers: { @@ -351,11 +347,6 @@ describe('TaskModalForm', () => { ], }, }, - GetUser: { - user: { - id: 'user-1', - }, - }, }} onCall={mutationSpy} >