From 4dfb11ddf6bd958ee70f9d7cfb639d37fc17cc6a Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Mon, 22 Jul 2024 10:30:24 +0200 Subject: [PATCH] Fix formatting --- .../CreateCustomListDialogViewModelTest.kt | 11 ++++++----- .../viewmodel/SelectLocationViewModelTest.kt | 14 ++++++-------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CreateCustomListDialogViewModelTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CreateCustomListDialogViewModelTest.kt index 0ff5c9c3984a..660ee2899b53 100644 --- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CreateCustomListDialogViewModelTest.kt +++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/CreateCustomListDialogViewModelTest.kt @@ -38,11 +38,12 @@ class CreateCustomListDialogViewModelTest { val customListName = CustomListName.fromString("list") val customListId = CustomListId("1") val locationNames = listOf("locationName") - val expectedResult = CustomListActionResultData.CreatedWithLocations( - customListName = customListName, - locationNames = locationNames, - undo = mockUndo - ) + val expectedResult = + CustomListActionResultData.CreatedWithLocations( + customListName = customListName, + locationNames = locationNames, + undo = mockUndo + ) val viewModel = createViewModelWithLocationCode(GeoLocationId.Country("AB")) coEvery { mockCustomListActionUseCase(any()) } returns mockCreated.right() diff --git a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/SelectLocationViewModelTest.kt b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/SelectLocationViewModelTest.kt index d002e3c02147..f14cff6fc3c0 100644 --- a/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/SelectLocationViewModelTest.kt +++ b/android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel/SelectLocationViewModelTest.kt @@ -272,10 +272,7 @@ class SelectLocationViewModelTest { CustomListActionResultData.LocationAdded( customListName = customListName, locationName = location.name, - undo = CustomListAction.UpdateLocations( - id = customListId, - locations = emptyList() - ) + undo = CustomListAction.UpdateLocations(id = customListId, locations = emptyList()) ) coEvery { mockCustomListActionUseCase(any()) } returns @@ -320,10 +317,11 @@ class SelectLocationViewModelTest { CustomListActionResultData.LocationRemoved( customListName = customListName, locationName = locationName, - undo = CustomListAction.UpdateLocations( - id = customListId, - locations = listOf(location.id) - ) + undo = + CustomListAction.UpdateLocations( + id = customListId, + locations = listOf(location.id) + ) ) coEvery { mockCustomListActionUseCase(any()) } returns LocationsChanged(