diff --git a/src/components/Reports/FourteenMonthReports/FourteenMonthReport.test.tsx b/src/components/Reports/FourteenMonthReports/FourteenMonthReport.test.tsx index 2ea083d225..17b9fd9bfc 100644 --- a/src/components/Reports/FourteenMonthReports/FourteenMonthReport.test.tsx +++ b/src/components/Reports/FourteenMonthReports/FourteenMonthReport.test.tsx @@ -489,13 +489,8 @@ describe('FourteenMonthReport', () => { ); await waitFor(() => - expect(mutationSpy.mock.calls[1][0]).toMatchObject({ - operation: { - operationName: 'FourteenMonthReport', - variables: { - designationAccountIds: ['account-1'], - }, - }, + expect(mutationSpy).toHaveGraphqlOperation('FourteenMonthReport', { + designationAccountIds: ['account-1'], }), ); }); @@ -521,13 +516,8 @@ describe('FourteenMonthReport', () => { ); await waitFor(() => - expect(mutationSpy.mock.calls[1][0]).toMatchObject({ - operation: { - operationName: 'FourteenMonthReport', - variables: { - designationAccountIds: null, - }, - }, + expect(mutationSpy).toHaveGraphqlOperation('FourteenMonthReport', { + designationAccountIds: null, }), ); });