From 9d31e213fced8911ea5765b397098d27f5be43af Mon Sep 17 00:00:00 2001 From: Novell <76243292+NJ-2020@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:27:14 -0800 Subject: [PATCH] add comment for transactionSections Co-authored-by: Monil Bhavsar --- tests/unit/Search/SearchUIUtilsTest.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/Search/SearchUIUtilsTest.ts b/tests/unit/Search/SearchUIUtilsTest.ts index 23a2a10583b1..66825c20bdfc 100644 --- a/tests/unit/Search/SearchUIUtilsTest.ts +++ b/tests/unit/Search/SearchUIUtilsTest.ts @@ -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}]);