mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Move more MockTimelineController configuration to the constructor
This commit is contained in:
+1
-2
@@ -72,8 +72,7 @@ struct PinnedEventsTimelineScreen_Previews: PreviewProvider, TestablePreview {
|
||||
analyticsService: AnalyticsServiceMock(.init()))
|
||||
|
||||
static let emptyTimelineViewModel: TimelineViewModel = {
|
||||
let timelineController = MockTimelineController(timelineKind: .pinned)
|
||||
timelineController.timelineItems = []
|
||||
let timelineController = MockTimelineController(timelineKind: .pinned, timelineItems: [])
|
||||
|
||||
let appSettings = AppSettings.volatile()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user