@@ -2695,7 +2695,7 @@ describe('actions/IOU/ReportWorkflow', () => {
26952695 await Onyx . set ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS } ${ chatReportID } ` , MOCK_REPORT_ACTIONS ) ;
26962696 await waitForBatchedUpdates ( ) ;
26972697
2698- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
2698+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
26992699 expect ( result . reportAction ) . toMatchObject ( validReportAction ) ;
27002700 expect ( result . actionBadge ) . toBe ( CONST . REPORT . ACTION_BADGE . APPROVE ) ;
27012701 } ) ;
@@ -2753,7 +2753,7 @@ describe('actions/IOU/ReportWorkflow', () => {
27532753 } ) ;
27542754 await waitForBatchedUpdates ( ) ;
27552755
2756- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
2756+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
27572757 expect ( result . reportAction ) . toMatchObject ( reportPreviewAction ) ;
27582758 expect ( result . actionBadge ) . toBe ( CONST . REPORT . ACTION_BADGE . APPROVE ) ;
27592759 } ) ;
@@ -2816,7 +2816,7 @@ describe('actions/IOU/ReportWorkflow', () => {
28162816 } ) ;
28172817 await waitForBatchedUpdates ( ) ;
28182818
2819- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
2819+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
28202820 expect ( result . reportAction ) . toMatchObject ( reportPreviewAction ) ;
28212821 expect ( result . actionBadge ) . toBe ( CONST . REPORT . ACTION_BADGE . PAY ) ;
28222822 } ) ;
@@ -2880,7 +2880,7 @@ describe('actions/IOU/ReportWorkflow', () => {
28802880 } ) ;
28812881 await waitForBatchedUpdates ( ) ;
28822882
2883- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
2883+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
28842884 expect ( result . reportAction ) . toMatchObject ( reportPreviewAction ) ;
28852885 expect ( result . actionBadge ) . toBe ( CONST . REPORT . ACTION_BADGE . SUBMIT ) ;
28862886 } ) ;
@@ -2947,7 +2947,7 @@ describe('actions/IOU/ReportWorkflow', () => {
29472947 } ) ;
29482948 await waitForBatchedUpdates ( ) ;
29492949
2950- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
2950+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
29512951 expect ( result . reportAction ) . toMatchObject ( reportPreviewAction ) ;
29522952 expect ( result . actionBadge ) . toBe ( CONST . REPORT . ACTION_BADGE . PAY ) ;
29532953 } ) ;
@@ -3014,7 +3014,7 @@ describe('actions/IOU/ReportWorkflow', () => {
30143014 } ) ;
30153015 await waitForBatchedUpdates ( ) ;
30163016
3017- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
3017+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
30183018 expect ( result . reportAction ) . toBeUndefined ( ) ;
30193019 expect ( result . actionBadge ) . toBeUndefined ( ) ;
30203020 } ) ;
@@ -3073,7 +3073,7 @@ describe('actions/IOU/ReportWorkflow', () => {
30733073 } ) ;
30743074 await waitForBatchedUpdates ( ) ;
30753075
3076- const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined ) ;
3076+ const result = getIOUReportActionWithBadge ( fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
30773077 expect ( result . reportAction ) . toBeUndefined ( ) ;
30783078 expect ( result . actionBadge ) . toBeUndefined ( ) ;
30793079 } ) ;
@@ -3122,7 +3122,7 @@ describe('actions/IOU/ReportWorkflow', () => {
31223122 await Onyx . set ( `${ ONYXKEYS . COLLECTION . TRANSACTION } ${ fakeTransaction . transactionID } ` , fakeTransaction ) ;
31233123 await waitForBatchedUpdates ( ) ;
31243124
3125- const result = getBadgeFromIOUReport ( fakeIouReport , fakeChatReport , fakePolicy , { } , undefined ) ;
3125+ const result = getBadgeFromIOUReport ( fakeIouReport , fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
31263126 expect ( result ) . toBe ( CONST . REPORT . ACTION_BADGE . APPROVE ) ;
31273127 } ) ;
31283128
@@ -3173,7 +3173,7 @@ describe('actions/IOU/ReportWorkflow', () => {
31733173 await Onyx . set ( `${ ONYXKEYS . COLLECTION . TRANSACTION } ${ fakeTransaction . transactionID } ` , fakeTransaction ) ;
31743174 await waitForBatchedUpdates ( ) ;
31753175
3176- const result = getBadgeFromIOUReport ( fakeIouReport , fakeChatReport , fakePolicy , { } , undefined ) ;
3176+ const result = getBadgeFromIOUReport ( fakeIouReport , fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
31773177 expect ( result ) . toBe ( CONST . REPORT . ACTION_BADGE . PAY ) ;
31783178 } ) ;
31793179
@@ -3209,7 +3209,7 @@ describe('actions/IOU/ReportWorkflow', () => {
32093209 await Onyx . set ( `${ ONYXKEYS . COLLECTION . REPORT } ${ iouReportID } ` , fakeIouReport ) ;
32103210 await waitForBatchedUpdates ( ) ;
32113211
3212- const result = getBadgeFromIOUReport ( fakeIouReport , fakeChatReport , fakePolicy , { } , undefined ) ;
3212+ const result = getBadgeFromIOUReport ( fakeIouReport , fakeChatReport , fakePolicy , { } , undefined , RORY_EMAIL , RORY_ACCOUNT_ID ) ;
32133213 expect ( result ) . toBeUndefined ( ) ;
32143214 } ) ;
32153215 } ) ;
0 commit comments