|
|
|
@ -20,7 +20,6 @@ import app.cash.molecule.RecompositionMode
@@ -20,7 +20,6 @@ import app.cash.molecule.RecompositionMode
|
|
|
|
|
import app.cash.molecule.moleculeFlow |
|
|
|
|
import app.cash.turbine.test |
|
|
|
|
import com.google.common.truth.Truth.assertThat |
|
|
|
|
import io.element.android.appconfig.LockScreenConfig |
|
|
|
|
import io.element.android.features.lockscreen.impl.pin.model.assertEmpty |
|
|
|
|
import io.element.android.features.lockscreen.impl.pin.model.assertText |
|
|
|
|
import io.element.android.features.lockscreen.impl.setup.validation.PinValidator |
|
|
|
@ -32,7 +31,7 @@ import org.junit.Test
@@ -32,7 +31,7 @@ import org.junit.Test
|
|
|
|
|
|
|
|
|
|
class SetupPinPresenterTest { |
|
|
|
|
|
|
|
|
|
private val blacklistedPin = LockScreenConfig.PIN_BLACKLIST |
|
|
|
|
private val blacklistedPin = "1234" |
|
|
|
|
private val halfCompletePin = "12" |
|
|
|
|
private val completePin = "1235" |
|
|
|
|
private val mismatchedPin = "1236" |
|
|
|
@ -101,6 +100,6 @@ class SetupPinPresenterTest {
@@ -101,6 +100,6 @@ class SetupPinPresenterTest {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun createSetupPinPresenter(): SetupPinPresenter { |
|
|
|
|
return SetupPinPresenter(PinValidator(), aBuildMeta()) |
|
|
|
|
return SetupPinPresenter(PinValidator(setOf(blacklistedPin)), aBuildMeta()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|