File tree 2 files changed +12
-13
lines changed
android/app/src/test/kotlin/net/mullvad/mullvadvpn/viewmodel
2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ class CreateCustomListDialogViewModelTest {
38
38
val customListName = CustomListName .fromString(" list" )
39
39
val customListId = CustomListId (" 1" )
40
40
val locationNames = listOf (" locationName" )
41
- val expectedResult = CustomListActionResultData .CreatedWithLocations (
42
- customListName = customListName,
43
- locationNames = locationNames,
44
- undo = mockUndo
45
- )
41
+ val expectedResult =
42
+ CustomListActionResultData .CreatedWithLocations (
43
+ customListName = customListName,
44
+ locationNames = locationNames,
45
+ undo = mockUndo
46
+ )
46
47
val viewModel = createViewModelWithLocationCode(GeoLocationId .Country (" AB" ))
47
48
coEvery { mockCustomListActionUseCase(any<CustomListAction .Create >()) } returns
48
49
mockCreated.right()
Original file line number Diff line number Diff line change @@ -296,10 +296,7 @@ class SelectLocationViewModelTest {
296
296
CustomListActionResultData .LocationAdded (
297
297
customListName = customListName,
298
298
locationName = location.name,
299
- undo = CustomListAction .UpdateLocations (
300
- id = customListId,
301
- locations = emptyList()
302
- )
299
+ undo = CustomListAction .UpdateLocations (id = customListId, locations = emptyList())
303
300
)
304
301
305
302
coEvery { mockCustomListActionUseCase(any<CustomListAction .UpdateLocations >()) } returns
@@ -337,10 +334,11 @@ class SelectLocationViewModelTest {
337
334
CustomListActionResultData .LocationRemoved (
338
335
customListName = customListName,
339
336
locationName = locationName,
340
- undo = CustomListAction .UpdateLocations (
341
- id = customListId,
342
- locations = listOf (location.id)
343
- )
337
+ undo =
338
+ CustomListAction .UpdateLocations (
339
+ id = customListId,
340
+ locations = listOf (location.id)
341
+ )
344
342
)
345
343
coEvery { mockCustomListActionUseCase(any<CustomListAction .UpdateLocations >()) } returns
346
344
LocationsChanged (
You can’t perform that action at this time.
0 commit comments