mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 12:54:35 +00:00
Small cleanup
This commit is contained in:
committed by
Benoit Marty
parent
a4cf1d7e08
commit
f286f6d464
+1
-3
@@ -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`() {
|
||||||
|
|||||||
Reference in New Issue
Block a user