Give 0 has default value for fixtures creators.

Also increases the readability of tests.
This commit is contained in:
Benoit Marty 2024-02-06 15:06:00 +01:00 committed by Benoit Marty
parent c4f72ecfbc
commit 17f23304d0
3 changed files with 32 additions and 18 deletions

View file

@ -37,8 +37,8 @@ fun aRoomSummaryFilled(
isDirect: Boolean = false,
avatarUrl: String? = null,
lastMessage: RoomMessage? = aRoomMessage(),
numUnreadMentions: Int = 1,
numUnreadMessages: Int = 2,
numUnreadMentions: Int = 0,
numUnreadMessages: Int = 0,
notificationMode: RoomNotificationMode? = null,
) = RoomSummary.Filled(
aRoomSummaryDetails(