mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
refactoring
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
77a9ae601f
commit
c6fb2ef6e1
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ class ContactsViewModelTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
fun `fetch contacts with error`() =
|
||||
fun `test error contacts state`() =
|
||||
runTest {
|
||||
viewModel = ContactsViewModel(FakeRepositoryError())
|
||||
assert(viewModel.contactsViewState.value is ContactsUiState.Error)
|
||||
|
|
|
@ -17,7 +17,7 @@ import com.nextcloud.talk.models.json.generic.GenericMeta
|
|||
import org.mockito.Mockito.mock
|
||||
|
||||
object FakeItem {
|
||||
val contacts: List<AutocompleteUser>? =
|
||||
val contacts: List<AutocompleteUser> =
|
||||
listOf(
|
||||
AutocompleteUser(id = "android", label = "Android", source = "users"),
|
||||
AutocompleteUser(id = "android1", label = "Android 1", source = "users"),
|
||||
|
|
Loading…
Reference in a new issue