Skip to content

Commit

Permalink
Fix InterestsScreenTest
Browse files Browse the repository at this point in the history
Change-Id: I283f7c84230b31a0c1ad4b6f9018df2cfb99c6bf
  • Loading branch information
mmoczkowski committed Oct 4, 2023
1 parent 5367393 commit e9c64f3
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class InterestsScreenTest {
fun interestsWithTopics_whenTopicsFollowed_showFollowedAndUnfollowedTopicsWithInfo() {
composeTestRule.setContent {
InterestsScreen(
uiState = InterestsUiState.Interests(topics = followableTopicTestData),
uiState = InterestsUiState.Interests(
selectedTopicId = null,
topics = followableTopicTestData,
),
)
}

Expand Down Expand Up @@ -108,8 +111,9 @@ class InterestsScreenTest {
private fun InterestsScreen(uiState: InterestsUiState) {
InterestsScreen(
uiState = uiState,
followTopic = { _, _ -> },
onTopicClick = {},
followTopic = { _, _ -> /* no-op */ },
onTopicClick = { /* no-op */ },
detailsPane = { /* no-op */ },
)
}
}
Expand Down

0 comments on commit e9c64f3

Please sign in to comment.