From 4228ccc7e13a6c7a9755ca69905421b51164d3e5 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 55caf5ddcb12..70fac82a3120 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 @@ -296,10 +296,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 @@ -337,10 +334,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(