Add tests for SpaceFiltersPresenter and SpaceFiltersView and fix quality
This commit is contained in:
parent
9aa0db981b
commit
c7015c367c
12 changed files with 345 additions and 53 deletions
|
|
@ -44,8 +44,8 @@ sealed interface RoomListFilter {
|
|||
) : RoomListFilter
|
||||
|
||||
data class Identifiers(
|
||||
val values : List<RoomId>,
|
||||
): RoomListFilter
|
||||
val values: List<RoomId>,
|
||||
) : RoomListFilter
|
||||
|
||||
/**
|
||||
* A filter that matches rooms that are unread.
|
||||
|
|
|
|||
|
|
@ -37,12 +37,12 @@ class FakeSpaceService(
|
|||
_topLevelSpacesFlow.emit(value)
|
||||
}
|
||||
|
||||
private val _spaceServiceFiltersFlow = MutableSharedFlow<List<SpaceServiceFilter>>()
|
||||
private val _spaceFiltersFlow = MutableSharedFlow<List<SpaceServiceFilter>>()
|
||||
override val spaceFiltersFlow: SharedFlow<List<SpaceServiceFilter>>
|
||||
get() = _spaceServiceFiltersFlow.asSharedFlow()
|
||||
get() = _spaceFiltersFlow.asSharedFlow()
|
||||
|
||||
suspend fun emitSpaceFilters(value: List<SpaceServiceFilter>) {
|
||||
_spaceServiceFiltersFlow.emit(value)
|
||||
_spaceFiltersFlow.emit(value)
|
||||
}
|
||||
|
||||
override suspend fun joinedParents(spaceId: RoomId): Result<List<SpaceRoom>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue