mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
quality: fix tests after api changes
This commit is contained in:
+2
@@ -97,6 +97,7 @@ class ChangeRoomPermissionsPresenterTest {
|
|||||||
presenter.present()
|
presenter.present()
|
||||||
}.test {
|
}.test {
|
||||||
val state = awaitUpdatedItem()
|
val state = awaitUpdatedItem()
|
||||||
|
val initialPermissions = defaultPermissions()
|
||||||
|
|
||||||
state.eventSink(ChangeRoomPermissionsEvent.ChangeMinimumRoleForAction(RoomPermissionType.INVITE, SelectableRole.Moderator))
|
state.eventSink(ChangeRoomPermissionsEvent.ChangeMinimumRoleForAction(RoomPermissionType.INVITE, SelectableRole.Moderator))
|
||||||
state.eventSink(ChangeRoomPermissionsEvent.ChangeMinimumRoleForAction(RoomPermissionType.KICK, SelectableRole.Moderator))
|
state.eventSink(ChangeRoomPermissionsEvent.ChangeMinimumRoleForAction(RoomPermissionType.KICK, SelectableRole.Moderator))
|
||||||
@@ -120,6 +121,7 @@ class ChangeRoomPermissionsPresenterTest {
|
|||||||
roomName = Moderator.powerLevel,
|
roomName = Moderator.powerLevel,
|
||||||
roomAvatar = Moderator.powerLevel,
|
roomAvatar = Moderator.powerLevel,
|
||||||
roomTopic = Moderator.powerLevel,
|
roomTopic = Moderator.powerLevel,
|
||||||
|
spaceChild = initialPermissions.spaceChild
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -746,7 +746,7 @@ class DefaultBaseRoomLastMessageFormatterTest {
|
|||||||
OtherState.RoomCanonicalAlias,
|
OtherState.RoomCanonicalAlias,
|
||||||
OtherState.RoomGuestAccess,
|
OtherState.RoomGuestAccess,
|
||||||
OtherState.RoomHistoryVisibility,
|
OtherState.RoomHistoryVisibility,
|
||||||
OtherState.RoomJoinRules,
|
OtherState.RoomJoinRules(null),
|
||||||
OtherState.RoomPinnedEvents(OtherState.RoomPinnedEvents.Change.CHANGED),
|
OtherState.RoomPinnedEvents(OtherState.RoomPinnedEvents.Change.CHANGED),
|
||||||
OtherState.RoomUserPowerLevels(emptyMap()),
|
OtherState.RoomUserPowerLevels(emptyMap()),
|
||||||
OtherState.RoomServerAcl,
|
OtherState.RoomServerAcl,
|
||||||
|
|||||||
+1
-1
@@ -601,7 +601,7 @@ class DefaultPinnedMessagesBannerFormatterTest {
|
|||||||
OtherState.RoomCanonicalAlias,
|
OtherState.RoomCanonicalAlias,
|
||||||
OtherState.RoomGuestAccess,
|
OtherState.RoomGuestAccess,
|
||||||
OtherState.RoomHistoryVisibility,
|
OtherState.RoomHistoryVisibility,
|
||||||
OtherState.RoomJoinRules,
|
OtherState.RoomJoinRules(null),
|
||||||
OtherState.RoomPinnedEvents(OtherState.RoomPinnedEvents.Change.CHANGED),
|
OtherState.RoomPinnedEvents(OtherState.RoomPinnedEvents.Change.CHANGED),
|
||||||
OtherState.RoomUserPowerLevels(emptyMap()),
|
OtherState.RoomUserPowerLevels(emptyMap()),
|
||||||
OtherState.RoomServerAcl,
|
OtherState.RoomServerAcl,
|
||||||
|
|||||||
+1
-1
@@ -510,7 +510,7 @@ class InReplyToMetadataKtTest {
|
|||||||
fun `state content`() = runTest {
|
fun `state content`() = runTest {
|
||||||
moleculeFlow(RecompositionMode.Immediate) {
|
moleculeFlow(RecompositionMode.Immediate) {
|
||||||
anInReplyToDetailsReady(
|
anInReplyToDetailsReady(
|
||||||
eventContent = StateContent("", OtherState.RoomJoinRules)
|
eventContent = StateContent("", OtherState.RoomJoinRules(null))
|
||||||
).metadata(hideImage = false)
|
).metadata(hideImage = false)
|
||||||
}.test {
|
}.test {
|
||||||
awaitItem().let {
|
awaitItem().let {
|
||||||
|
|||||||
Reference in New Issue
Block a user