Skip to content

Commit 62ad966

Browse files
authored
Fixed HomeRepositoryImplTest.kt by adding onLastPageReached missing callback (#49)
1 parent fe1ffe1 commit 62ad966

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/data/src/test/kotlin/com/skydoves/pokedex/compose/core/data/HomeRepositoryImplTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class HomeRepositoryImplTest {
7676
onStart = {},
7777
onComplete = {},
7878
onError = {},
79+
onLastPageReached = {}
7980
).test(2.toDuration(DurationUnit.SECONDS)) {
8081
val actualItem = awaitItem()[0]
8182
assertEquals(0, actualItem.page)
@@ -103,6 +104,7 @@ class HomeRepositoryImplTest {
103104
onStart = {},
104105
onComplete = {},
105106
onError = {},
107+
onLastPageReached = {}
106108
).test(2.toDuration(DurationUnit.SECONDS)) {
107109
val actualItem = awaitItem()[0]
108110
assertEquals(0, actualItem.page)

0 commit comments

Comments
 (0)