Skip to content

Commit

Permalink
Fix broken OverdueSearchUiRendererTest
Browse files Browse the repository at this point in the history
Looks like the `PagingData.empty` behaviour is changed, the instance of generated `PagingData` is different now. So, we create a variable to have same paging data instance
  • Loading branch information
msasikanth committed Mar 26, 2024
1 parent d2d5cc6 commit 28a13b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class OverdueSearchUiRendererTest {
@Test
fun `when progress state is in progress, then show progress`() {
// given
val emptyPagingData = PagingData.empty<OverdueAppointment>()
val model = defaultModel
.overdueSearchResultsLoaded(emptyPagingData)
.overdueSearchInputsChanged(searchInputs = listOf("Ani"))
.loadStateChanged(IN_PROGRESS)

Expand All @@ -32,7 +34,7 @@ class OverdueSearchUiRendererTest {

// then
verify(ui).setOverdueSearchResultsPagingData(
overdueSearchResults = PagingData.empty(),
overdueSearchResults = emptyPagingData,
selectedAppointments = emptySet()
)
verify(ui).hideProgress()
Expand Down

0 comments on commit 28a13b6

Please sign in to comment.