@@ -88,6 +88,7 @@ describe('actions/IOU/RejectMoneyRequest', () => {
8888 let transaction : OnyxEntry < Transaction > ;
8989 let policy : OnyxEntry < Policy > ;
9090 const TEST_USER_ACCOUNT_ID = 1 ;
91+ const TEST_USER_EMAIL = 'test@email.com' ;
9192 const MANAGER_ACCOUNT_ID = 2 ;
9293 const ADMIN_ACCOUNT_ID = 3 ;
9394
@@ -149,7 +150,7 @@ describe('actions/IOU/RejectMoneyRequest', () => {
149150 if ( ! transaction ?. transactionID || ! iouReport ?. reportID ) {
150151 throw new Error ( 'Required transaction or report data is missing' ) ;
151152 }
152- const result = rejectMoneyRequest ( transaction . transactionID , iouReport . reportID , comment , policy , TEST_USER_ACCOUNT_ID , [ CONST . BETAS . ALL ] ) ;
153+ const result = rejectMoneyRequest ( transaction . transactionID , iouReport . reportID , comment , policy , TEST_USER_ACCOUNT_ID , TEST_USER_EMAIL , [ CONST . BETAS . ALL ] ) ;
153154
154155 // Then: Should return navigation route to chat report
155156 expect ( result ) . toBe ( ROUTES . REPORT_WITH_ID . getRoute ( iouReport . reportID ) ) ;
@@ -165,7 +166,7 @@ describe('actions/IOU/RejectMoneyRequest', () => {
165166 if ( ! transaction ?. transactionID || ! iouReport ?. reportID ) {
166167 throw new Error ( 'Required transaction or report data is missing' ) ;
167168 }
168- rejectMoneyRequest ( transaction . transactionID , iouReport . reportID , comment , policy , TEST_USER_ACCOUNT_ID , [ CONST . BETAS . ALL ] ) ;
169+ rejectMoneyRequest ( transaction . transactionID , iouReport . reportID , comment , policy , TEST_USER_ACCOUNT_ID , TEST_USER_EMAIL , [ CONST . BETAS . ALL ] ) ;
169170 await waitForBatchedUpdates ( ) ;
170171
171172 // Then: Verify violation is added
@@ -221,7 +222,7 @@ describe('actions/IOU/RejectMoneyRequest', () => {
221222 if ( ! transaction ?. transactionID || ! iouReport ?. reportID ) {
222223 throw new Error ( 'Required transaction or report data is missing' ) ;
223224 }
224- rejectMoneyRequest ( transaction . transactionID , iouReport . reportID , comment , policy , TEST_USER_ACCOUNT_ID , [ CONST . BETAS . ALL ] ) ;
225+ rejectMoneyRequest ( transaction . transactionID , iouReport . reportID , comment , policy , TEST_USER_ACCOUNT_ID , TEST_USER_EMAIL , [ CONST . BETAS . ALL ] ) ;
225226 await waitForBatchedUpdates ( ) ;
226227
227228 // Then: createdIOUReportActionID shouldn't be undefined
0 commit comments