Fix LoadLegacyUserTest.kt

This commit is contained in:
dkadrikj 2022-10-21 15:28:13 +02:00 committed by Mateusz Armatys
parent ad1fa4f5b6
commit fea043fc9c
1 changed files with 2 additions and 3 deletions

View File

@ -19,6 +19,7 @@
package ch.protonmail.android.usecase
import arrow.core.Either
import assert4k.assert
import assert4k.that
import io.mockk.every
@ -38,9 +39,7 @@ class LoadLegacyUserTest : CoroutinesTest {
// given
val loadLegacyUser = LoadLegacyUser(
loadLegacyUserDelegate = mockk {
every { this@mockk.invoke(any()) } returns mockk {
every { isRight() } returns true
}
every { this@mockk.invoke(any()) } returns Either.Right(mockk())
},
dispatchers
)