|
|
@ -99,7 +99,8 @@ class TopicScreenTest {
|
|
|
|
composeTestRule.setContent {
|
|
|
|
composeTestRule.setContent {
|
|
|
|
TopicScreen(
|
|
|
|
TopicScreen(
|
|
|
|
topicState = TopicUiState.Loading,
|
|
|
|
topicState = TopicUiState.Loading,
|
|
|
|
newsUiState = NewsUiState.Success(sampleNewsResources.mapIndexed { index, newsResource ->
|
|
|
|
newsUiState = NewsUiState.Success(
|
|
|
|
|
|
|
|
sampleNewsResources.mapIndexed { index, newsResource ->
|
|
|
|
SaveableNewsResource(
|
|
|
|
SaveableNewsResource(
|
|
|
|
newsResource = newsResource,
|
|
|
|
newsResource = newsResource,
|
|
|
|
isSaved = index % 2 == 0,
|
|
|
|
isSaved = index % 2 == 0,
|
|
|
@ -123,7 +124,8 @@ class TopicScreenTest {
|
|
|
|
composeTestRule.setContent {
|
|
|
|
composeTestRule.setContent {
|
|
|
|
TopicScreen(
|
|
|
|
TopicScreen(
|
|
|
|
topicState = TopicUiState.Success(testTopic),
|
|
|
|
topicState = TopicUiState.Success(testTopic),
|
|
|
|
newsUiState = NewsUiState.Success(sampleNewsResources.mapIndexed { index, newsResource ->
|
|
|
|
newsUiState = NewsUiState.Success(
|
|
|
|
|
|
|
|
sampleNewsResources.mapIndexed { index, newsResource ->
|
|
|
|
SaveableNewsResource(
|
|
|
|
SaveableNewsResource(
|
|
|
|
newsResource = newsResource,
|
|
|
|
newsResource = newsResource,
|
|
|
|
isSaved = index % 2 == 0,
|
|
|
|
isSaved = index % 2 == 0,
|
|
|
|