Add data from the last 10 episodes

pull/387/head
Don Turner 2 years ago
parent 0171971dc7
commit a9aa3eafab

@ -255,7 +255,8 @@ class NavigationTest {
fun navigationBar_multipleBackStackInterests() {
composeTestRule.apply {
onNodeWithText(interests).performClick()
onNodeWithText("Android Studio").performClick() // TODO: Grab string from fake data
// TODO: Grab string from fake data
onNodeWithText("Android Studio & Tools").performClick()
// Switch tab
onNodeWithText(forYou).performClick()

@ -61,10 +61,9 @@ class GetFollowableTopicsStreamUseCase @Inject constructor(
isFollowed = topic.id in followedIds
)
}
if (sortBy == NAME) {
followedTopics.sortedBy { it.topic.name }
} else {
followedTopics
when (sortBy) {
NAME -> followedTopics.sortedBy { it.topic.name }
else -> followedTopics
}
}
}

@ -49,7 +49,7 @@ class FakeNiaNetworkDataSourceTest {
fun testDeserializationOfNewsResources() = runTest(testDispatcher) {
assertEquals(
FakeDataSource.sampleResource,
subject.getNewsResources().first()
subject.getNewsResources().find { it.id == FakeDataSource.sampleResource.id }
)
}
}

Loading…
Cancel
Save