@@ -27,6 +27,7 @@ const reportID = '123456789';
2727const reportID2 = '11111' ;
2828const reportID3 = '99999' ;
2929const reportID4 = '6155022250251839' ;
30+ const reportID5 = '22222' ;
3031const transactionID = '1' ;
3132const transactionID2 = '2' ;
3233const transactionID3 = '3' ;
@@ -231,6 +232,27 @@ const searchResults: OnyxTypes.SearchResults = {
231232 created : '2025-03-05 16:34:27' ,
232233 type : 'chat' ,
233234 } ,
235+ [ `report_${ reportID5 } ` ] : {
236+ accountID : adminAccountID ,
237+ action : 'view' ,
238+ chatReportID : '1706144653204915' ,
239+ created : '2024-12-21 13:05:20' ,
240+ currency : 'USD' ,
241+ isOneTransactionReport : true ,
242+ isPolicyExpenseChat : false ,
243+ isWaitingOnBankAccount : false ,
244+ managerID : adminAccountID ,
245+ nonReimbursableTotal : 0 ,
246+ ownerAccountID : adminAccountID ,
247+ policyID,
248+ reportID : reportID5 ,
249+ reportName : 'Expense Report #123' ,
250+ stateNum : 0 ,
251+ statusNum : 0 ,
252+ total : 0 ,
253+ type : 'expense' ,
254+ unheldTotal : 0 ,
255+ } ,
234256 [ `transactions_${ transactionID } ` ] : {
235257 accountID : adminAccountID ,
236258 action : 'view' ,
@@ -953,6 +975,42 @@ const transactionReportGroupListItems = [
953975 } ,
954976 transactions : [ transactionsListItems . at ( 2 ) , transactionsListItems . at ( 3 ) ] ,
955977 } ,
978+ {
979+ groupedBy : 'reports' ,
980+ accountID : 18439984 ,
981+ action : 'view' ,
982+ chatReportID : '1706144653204915' ,
983+ created : '2024-12-21 13:05:20' ,
984+ currency : 'USD' ,
985+ from : {
986+ accountID : CONST . REPORT . OWNER_ACCOUNT_ID_FAKE ,
987+ avatar : '' ,
988+ displayName : undefined ,
989+ login : undefined ,
990+ } ,
991+ isOneTransactionReport : true ,
992+ isPolicyExpenseChat : false ,
993+ isWaitingOnBankAccount : false ,
994+ keyForList : reportID5 ,
995+ managerID : 18439984 ,
996+ nonReimbursableTotal : 0 ,
997+ ownerAccountID : 18439984 ,
998+ policyID : 'A1B2C3' ,
999+ reportID : reportID5 ,
1000+ reportName : 'Expense Report #123' ,
1001+ stateNum : 0 ,
1002+ statusNum : 0 ,
1003+ to : {
1004+ accountID : 0 ,
1005+ avatar : '' ,
1006+ displayName : undefined ,
1007+ login : undefined ,
1008+ } ,
1009+ total : 0 ,
1010+ transactions : [ ] ,
1011+ type : 'expense' ,
1012+ unheldTotal : 0 ,
1013+ } ,
9561014] as TransactionReportGroupListItemType [ ] ;
9571015
9581016describe ( 'SearchUIUtils' , ( ) => {
0 commit comments