File tree Expand file tree Collapse file tree
feature-retrofit/src/test/java/com/advice/retrofit/datasource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,8 +90,18 @@ class RetrofitMapsDataSourceTest {
9090 val success = emissions.filterIsInstance<FlowResult .Success <Maps >>().last()
9191 assertEquals(2L , success.value.conference.id)
9292 assertEquals(1 , success.value.maps.size)
93- assertEquals(" Floor 1" , success.value.maps.first().name)
94- assertTrue(success.value.maps.first().file.exists())
93+ assertEquals(
94+ " Floor 1" ,
95+ success.value.maps
96+ .first()
97+ .name,
98+ )
99+ assertTrue(
100+ success.value.maps
101+ .first()
102+ .file
103+ .exists(),
104+ )
95105
96106 collectJob.cancel()
97107 mapsScope.cancel()
@@ -204,8 +214,7 @@ class RetrofitMapsDataSourceTest {
204214 assertFalse(RetrofitMapsDataSource .isValidCache(file))
205215 }
206216
207- private fun TestScope.childMapsScope (): CoroutineScope =
208- CoroutineScope (coroutineContext + SupervisorJob ())
217+ private fun TestScope.childMapsScope (): CoroutineScope = CoroutineScope (coroutineContext + SupervisorJob ())
209218
210219 private fun createSubject (
211220 conferenceFlow : MutableStateFlow <FlowResult <Conference >>,
You can’t perform that action at this time.
0 commit comments