|
|
@ -174,7 +174,6 @@ class BookmarksScreenTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
fun feed_whenLifecycleStops_undoBookmarkedStateIsCleared() = runTest {
|
|
|
|
fun feed_whenLifecycleStops_undoBookmarkedStateIsCleared() = runTest {
|
|
|
|
|
|
|
|
|
|
|
|
var undoStateCleared = false
|
|
|
|
var undoStateCleared = false
|
|
|
|
val testLifecycleOwner = TestLifecycleOwner(initialState = Lifecycle.State.STARTED)
|
|
|
|
val testLifecycleOwner = TestLifecycleOwner(initialState = Lifecycle.State.STARTED)
|
|
|
|
|
|
|
|
|
|
|
@ -188,7 +187,7 @@ class BookmarksScreenTest {
|
|
|
|
onNewsResourceViewed = {},
|
|
|
|
onNewsResourceViewed = {},
|
|
|
|
clearUndoState = {
|
|
|
|
clearUndoState = {
|
|
|
|
undoStateCleared = true
|
|
|
|
undoStateCleared = true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|