1
0
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:
yostyle
2023-03-06 20:51:18 +01:00
parent 8f65ba7777
commit 7dcd428802

View File

@@ -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()