@@ -119,12 +119,14 @@ class SelectLocationViewModelTest {
119
119
assertIs<SelectLocationUiState .Content >(actualState)
120
120
assertLists(
121
121
testCountries.map { it.id },
122
- actualState.relayListItems.mapNotNull { it.relayItemId() })
122
+ actualState.relayListItems.mapNotNull { it.relayItemId() }
123
+ )
123
124
assertTrue(
124
125
actualState.relayListItems
125
126
.filterIsInstance<RelayListItem .SelectableItem >()
126
127
.first { it.relayItemId() == selectedId }
127
- .isSelected)
128
+ .isSelected
129
+ )
128
130
}
129
131
}
130
132
@@ -140,11 +142,13 @@ class SelectLocationViewModelTest {
140
142
assertIs<SelectLocationUiState .Content >(actualState)
141
143
assertLists(
142
144
testCountries.map { it.id },
143
- actualState.relayListItems.mapNotNull { it.relayItemId() })
145
+ actualState.relayListItems.mapNotNull { it.relayItemId() }
146
+ )
144
147
assertTrue(
145
148
actualState.relayListItems.filterIsInstance<RelayListItem .SelectableItem >().all {
146
149
! it.isSelected
147
- })
150
+ }
151
+ )
148
152
}
149
153
}
150
154
@@ -191,7 +195,8 @@ class SelectLocationViewModelTest {
191
195
assertTrue(
192
196
actualState.relayListItems.filterIsInstance<RelayListItem .GeoLocationItem >().any {
193
197
it.item is RelayItem .Location .City && it.item.name == " Gothenburg"
194
- })
198
+ }
199
+ )
195
200
}
196
201
}
197
202
@@ -218,7 +223,8 @@ class SelectLocationViewModelTest {
218
223
assertIs<SelectLocationUiState .Content >(actualState)
219
224
assertEquals(
220
225
listOf (RelayListItem .LocationsEmptyText (mockSearchString)),
221
- actualState.relayListItems)
226
+ actualState.relayListItems
227
+ )
222
228
}
223
229
}
224
230
@@ -278,7 +284,8 @@ class SelectLocationViewModelTest {
278
284
CustomList (
279
285
id = CustomListId (" 1" ),
280
286
name = CustomListName .fromString(" custom" ),
281
- locations = emptyList()),
287
+ locations = emptyList()
288
+ ),
282
289
locations = emptyList(),
283
290
)
284
291
coEvery { mockCustomListActionUseCase(any<CustomListAction .UpdateLocations >()) } returns
@@ -321,7 +328,11 @@ class SelectLocationViewModelTest {
321
328
RelayItem .Location .City (
322
329
id = GeoLocationId .City (GeoLocationId .Country (" se" ), " got" ),
323
330
" Gothenburg" ,
324
- emptyList()))),
325
- RelayItem .Location .Country (id = GeoLocationId .Country (" no" ), " Norway" , emptyList()))
331
+ emptyList()
332
+ )
333
+ )
334
+ ),
335
+ RelayItem .Location .Country (id = GeoLocationId .Country (" no" ), " Norway" , emptyList())
336
+ )
326
337
}
327
338
}
0 commit comments