Add support to start date

This commit is contained in:
Alfonso Grillo
2023-01-19 18:15:39 +01:00
parent 45e37e2610
commit 8c572d0bfe
6 changed files with 14 additions and 3 deletions
@@ -38,6 +38,7 @@ final class MockPollHistoryService: PollHistoryServiceProtocol {
TimelinePollDetails(question: "Do you like the active poll number \(index)?",
answerOptions: [],
closed: false,
startDate: .init(),
totalAnswerCount: 30,
type: .disclosed,
eventType: .started,
@@ -51,6 +52,7 @@ final class MockPollHistoryService: PollHistoryServiceProtocol {
TimelinePollDetails(question: "Do you like the active poll number \(index)?",
answerOptions: [.init(id: "id", text: "Yes, of course!", count: 20, winner: true, selected: true)],
closed: true,
startDate: .init(),
totalAnswerCount: 30,
type: .disclosed,
eventType: .started,