Small cleanup
This commit is contained in:
parent
8137c68154
commit
eb9676294b
1 changed files with 11 additions and 13 deletions
|
|
@ -51,9 +51,8 @@ class TimelineMediaGalleryDataSourceTest {
|
||||||
val warmUpRule = WarmUpRule()
|
val warmUpRule = WarmUpRule()
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test - not started TimelineMediaGalleryDataSource emits no events`() {
|
fun `test - not started TimelineMediaGalleryDataSource emits no events`() = runTest {
|
||||||
val fakeTimeline = FakeTimeline()
|
val fakeTimeline = FakeTimeline()
|
||||||
runTest {
|
|
||||||
val sut = createTimelineMediaGalleryDataSource(
|
val sut = createTimelineMediaGalleryDataSource(
|
||||||
room = FakeMatrixRoom(
|
room = FakeMatrixRoom(
|
||||||
mediaTimelineResult = { Result.success(fakeTimeline) },
|
mediaTimelineResult = { Result.success(fakeTimeline) },
|
||||||
|
|
@ -67,7 +66,6 @@ class TimelineMediaGalleryDataSourceTest {
|
||||||
expectNoEvents()
|
expectNoEvents()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test - getLastData should return the previous emitted data`() {
|
fun `test - getLastData should return the previous emitted data`() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue