refactoring

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-07-25 19:27:52 +02:00 committed by Marcel Hibbe
parent 77a9ae601f
commit c6fb2ef6e1
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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"),