From 3fad4f4765ce9a6394ef3eaeb6573db4ad1591b0 Mon Sep 17 00:00:00 2001 From: Harrishan Date: Fri, 20 Dec 2024 06:17:34 +0100 Subject: [PATCH] test: return value when `userviewModel.avatar` is called --- .../java/com/android/periodpals/ui/profile/EditProfileTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt b/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt index 5fd1f3e64..a4ad6ccdf 100644 --- a/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt +++ b/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt @@ -118,6 +118,7 @@ class EditProfileTest { `when`(navigationActions.currentRoute()).thenReturn(Route.PROFILE) `when`(userViewModel.formState).thenReturn(formState) + `when`(userViewModel.avatar).thenReturn(mutableStateOf(ByteArray(0))) } @Test