summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-06-19 12:35:39 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-06-19 12:35:39 +0200
commite3347784356a05f292b530400b233414ba0251af (patch)
tree0b572ea846d1c8e0c0a2417ea5d45fc9d89a613e /android/app/src
parentb773536c4c2a6cfa2a3a82753b7ae9d0100e7c8c (diff)
parent73075c1eb137dc665f486ae4b6dc82d24190ee79 (diff)
downloadmullvadvpn-e3347784356a05f292b530400b233414ba0251af.tar.xz
mullvadvpn-e3347784356a05f292b530400b233414ba0251af.zip
Merge branch 'update-android-dep-19-6-25'
Diffstat (limited to 'android/app/src')
-rw-r--r--android/app/src/test/kotlin/net/mullvad/mullvadvpn/repository/CustomListsRepositoryTest.kt6
-rw-r--r--android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListsViewModelTest.kt2
2 files changed, 4 insertions, 4 deletions
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/repository/CustomListsRepositoryTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/repository/CustomListsRepositoryTest.kt
index d86c82748d..dc34a19430 100644
--- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/repository/CustomListsRepositoryTest.kt
+++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/repository/CustomListsRepositoryTest.kt
@@ -51,7 +51,7 @@ class CustomListsRepositoryTest {
CustomList(
id = customListId,
name = mockk(relaxed = true),
- locations = mockk(relaxed = true),
+ locations = listOf(mockk(relaxed = true)),
)
val mockSettings: Settings = mockk()
every { mockSettings.customLists } returns listOf(mockCustomList)
@@ -73,7 +73,7 @@ class CustomListsRepositoryTest {
CustomList(
id = customListId,
name = mockk(relaxed = true),
- locations = mockk(relaxed = true),
+ locations = listOf(mockk(relaxed = true)),
)
val mockSettings: Settings = mockk()
val otherCustomListId = CustomListId("2")
@@ -128,7 +128,7 @@ class CustomListsRepositoryTest {
CustomList(
id = customListId,
name = mockk(relaxed = true),
- locations = mockk(relaxed = true),
+ locations = listOf(mockk(relaxed = true)),
)
every { mockSettings.customLists } returns listOf(mockCustomList)
settingsFlow.value = mockSettings
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListsViewModelTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListsViewModelTest.kt
index 50c52f74cd..fae6546742 100644
--- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListsViewModelTest.kt
+++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListsViewModelTest.kt
@@ -24,7 +24,7 @@ class CustomListsViewModelTest {
@Test
fun `given custom list from relay list use case should be in state`() = runTest {
// Arrange
- val customLists: List<CustomList> = mockk()
+ val customLists: List<CustomList> = listOf(mockk())
val expectedState = CustomListsUiState.Content(customLists)
every { mockCustomListsRepository.customLists } returns MutableStateFlow(customLists)
val viewModel = createViewModel()