summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/test
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-06-17 16:55:21 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-06-24 14:22:23 +0200
commit14fcbe159ea35ebd4e4d0adebd182e47631335cb (patch)
treeacc327998e3fa82c06c61c064bf0b370b6adc18b /android/app/src/test
parent41a021c7d4efdb74b1c71e7567d22ffc930411c4 (diff)
downloadmullvadvpn-14fcbe159ea35ebd4e4d0adebd182e47631335cb.tar.xz
mullvadvpn-14fcbe159ea35ebd4e4d0adebd182e47631335cb.zip
Enable support for creating a custom list with locations
Diffstat (limited to 'android/app/src/test')
-rw-r--r--android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/CustomListActionUseCaseTest.kt10
1 files changed, 3 insertions, 7 deletions
diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/CustomListActionUseCaseTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/CustomListActionUseCaseTest.kt
index 03d46cbde0..d9a687362a 100644
--- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/CustomListActionUseCaseTest.kt
+++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/usecase/CustomListActionUseCaseTest.kt
@@ -62,12 +62,8 @@ class CustomListActionUseCaseTest {
undo = action.not(createdId),
)
.right()
- coEvery { mockCustomListsRepository.createCustomList(name) } returns createdId.right()
- coEvery {
- mockCustomListsRepository.updateCustomList(
- CustomList(createdId, name, listOf(locationId))
- )
- } returns Unit.right()
+ coEvery { mockCustomListsRepository.createCustomList(name, listOf(locationId)) } returns
+ createdId.right()
relayListFlow.value =
listOf(
RelayItem.Location.Country(
@@ -91,7 +87,7 @@ class CustomListActionUseCaseTest {
val locationId = GeoLocationId.Country("AB")
val action = CustomListAction.Create(name = name, locations = listOf(locationId))
val expectedError = CreateWithLocationsError.Create(CustomListAlreadyExists).left()
- coEvery { mockCustomListsRepository.createCustomList(name) } returns
+ coEvery { mockCustomListsRepository.createCustomList(name, listOf(locationId)) } returns
CustomListAlreadyExists.left()
// Act