feat(security&privacy) : fix tests after some rework landed

This commit is contained in:
ganfra 2025-01-28 21:08:14 +01:00
parent d586bdc815
commit 706b298c3f
5 changed files with 87 additions and 22 deletions

View file

@ -67,7 +67,10 @@ class IdentityChangeStatePresenterTest {
@Test
fun `present - when the clear room emits identity change, the presenter does not emit new state`() = runTest {
val room = FakeMatrixRoom(isEncrypted = false)
val room = FakeMatrixRoom(
isEncrypted = false,
enableEncryptionResult = { Result.success(Unit) }
)
val presenter = createIdentityChangeStatePresenter(room)
presenter.test {
val initialState = awaitItem()