summaryrefslogtreecommitdiffhomepage
path: root/android/app/src/test
diff options
context:
space:
mode:
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