diff --git a/tests/unit/ReportSecondaryActionUtilsTest.ts b/tests/unit/ReportSecondaryActionUtilsTest.ts index 00c507fedaf32..007ca31f9f70a 100644 --- a/tests/unit/ReportSecondaryActionUtilsTest.ts +++ b/tests/unit/ReportSecondaryActionUtilsTest.ts @@ -186,7 +186,15 @@ describe('getSecondaryAction', () => { date: '2025-01-01', } as unknown as Transaction; - const result = getSecondaryReportActions({currentUserEmail: EMPLOYEE_EMAIL, report, chatReport, reportTransactions: [transaction1, transaction2], violations: {}, policy}); + const result = getSecondaryReportActions({ + currentUserEmail: EMPLOYEE_EMAIL, + report, + chatReport, + reportTransactions: [transaction1, transaction2], + originalTransaction: {} as Transaction, + violations: {}, + policy, + }); expect(result.includes(CONST.REPORT.SECONDARY_ACTIONS.SUBMIT)).toBe(true); }); @@ -207,7 +215,15 @@ describe('getSecondaryAction', () => { } as unknown as Policy; await Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${REPORT_ID}`, report); - const result = getSecondaryReportActions({currentUserEmail: EMPLOYEE_EMAIL, report, chatReport, reportTransactions: [], violations: {}, policy}); + const result = getSecondaryReportActions({ + currentUserEmail: EMPLOYEE_EMAIL, + report, + chatReport, + reportTransactions: [], + originalTransaction: {} as Transaction, + violations: {}, + policy, + }); expect(result.includes(CONST.REPORT.SECONDARY_ACTIONS.SUBMIT)).toBe(false); });