Improve test coverage

This commit is contained in:
Jack Kingsman
2026-03-19 17:19:35 -07:00
parent 45ed430580
commit 1ae76848fe
6 changed files with 187 additions and 37 deletions
+5 -3
View File
@@ -318,7 +318,11 @@ export function Sidebar({
(item: FavoriteItem) =>
item.type === 'channel'
? item.channel.name
: getContactDisplayName(item.contact.name, item.contact.public_key, item.contact.last_advert),
: getContactDisplayName(
item.contact.name,
item.contact.public_key,
item.contact.last_advert
),
[]
);
@@ -504,8 +508,6 @@ export function Sidebar({
filteredNonRepeaterContacts,
filteredRepeaters,
favorites,
getContactRecentTime,
getLastMessageTime,
sectionSortOrders.favorites,
sortFavoriteItemsByOrder,
]);