mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-05 15:52:47 +02:00
Fix tests
This commit is contained in:
@@ -82,6 +82,7 @@ class PinCodeHelperTests {
|
||||
val originalPinCode = "1234"
|
||||
val encryptedPinCode = "SOME_ENCRYPTED_VALUE"
|
||||
coEvery { storageEncrypted.getPinCode() } returns encryptedPinCode
|
||||
coEvery { storageEncrypted.isHashedPinCode() } returns true
|
||||
every { lockScreenKeyRepository.decryptPinCode(encryptedPinCode) } returns originalPinCode.sha256()
|
||||
pinCodeHelper.verifyPinCode(originalPinCode).shouldBeTrue()
|
||||
|
||||
|
Reference in New Issue
Block a user