diff --git a/src/components/Tool/Appeal/Modals/DeleteAppealContact/DeleteAppealContactModal.test.tsx b/src/components/Tool/Appeal/Modals/DeleteAppealContact/DeleteAppealContactModal.test.tsx index 7781295426..b0834543a1 100644 --- a/src/components/Tool/Appeal/Modals/DeleteAppealContact/DeleteAppealContactModal.test.tsx +++ b/src/components/Tool/Appeal/Modals/DeleteAppealContact/DeleteAppealContactModal.test.tsx @@ -210,16 +210,12 @@ describe('DeleteAppealContactModal', () => { }); await waitFor(() => { - expect(mutationSpy.mock.calls[8][0].operation.operationName).toEqual( - 'DeleteAppealContact', - ); - expect(mutationSpy.mock.calls[8][0].operation.variables).toEqual({ + expect(mutationSpy).toHaveGraphqlOperation('DeleteAppealContact', { input: { id: 'appealContactId', }, }); - - expect(handleClose).toHaveBeenCalledTimes(1); }); + expect(handleClose).toHaveBeenCalledTimes(1); }); });