liminal
03/20/2020, 9:20 PMWanted but not invoked observer.onChanged...no interactions with this mock
. Thanks in advance!liminal
03/20/2020, 9:25 PMviewModelScope.launch {
val flow = userRepository.getUserRepos(login)
_userRepos.value = flow
.catch { _isUserReposError.value = true }
.toList()
}
liminal
03/20/2020, 10:32 PMliminal
03/21/2020, 2:34 AMtoList()
and how the test is writtenliminal
03/21/2020, 10:11 PMuserRepository.getUserRepos(login)
.catch { _isUserRepoError.value = true }
.collect { _userRepo.value = it }