File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
sync/sync-impl/src/test/java/com/duckduckgo/sync/impl/ui Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,8 @@ internal class EnterCodeViewModelTest {
260
260
fun whenProcessCodeAndLoginFailsThenUpdateStateToIdle () = runTest {
261
261
whenever(syncAccountRepository.getAccountInfo()).thenReturn(noAccount)
262
262
whenever(clipboard.pasteFromClipboard()).thenReturn(jsonRecoveryKeyEncoded)
263
- whenever(syncAccountRepository.processCode(jsonRecoveryKeyEncoded)).thenReturn(Error (code = LOGIN_FAILED .code))
263
+ whenever(syncAccountRepository.parseSyncAuthCode(jsonRecoveryKeyEncoded)).thenReturn(Recovery (RecoveryCode (jsonRecoveryKey, primaryKey)))
264
+ whenever(syncAccountRepository.processCode(any())).thenReturn(Error (code = LOGIN_FAILED .code))
264
265
265
266
testee.onPasteCodeClicked()
266
267
You can’t perform that action at this time.
0 commit comments