Skip to content

Commit

Permalink
add comment for transactionSections
Browse files Browse the repository at this point in the history
Co-authored-by: Monil Bhavsar <[email protected]>
  • Loading branch information
NJ-2020 and MonilBhavsar authored Dec 28, 2024
1 parent 8d40a20 commit 9d31e21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/Search/SearchUIUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ const searchResults: OnyxTypes.SearchResults = {
type: 'expense',
},
};

// When the results are filtered by type "expense" to be displayed on the search page
const transactionSections = SearchUIUtils.getSections('expense', 'all', searchResults.data, searchResults.search) as TransactionListItemType[];
const tests = transactionSections.map((transactionList) => [{transactionListItem: transactionList, expectedMerchant: CONST.TRANSACTION.DEFAULT_MERCHANT}]);

Expand Down

0 comments on commit 9d31e21

Please sign in to comment.