Add PollHistory view model UTs

This commit is contained in:
Alfonso Grillo
2023-01-23 14:57:34 +01:00
parent 9b16774d6a
commit 282ad810b2
6 changed files with 116 additions and 11 deletions
@@ -29,9 +29,11 @@ class TimelinePollViewModelTests: XCTestCase {
TimelinePollAnswerOption(id: "2", text: "2", count: 1, winner: false, selected: false),
TimelinePollAnswerOption(id: "3", text: "3", count: 1, winner: false, selected: false)]
let timelinePoll = TimelinePollDetails(question: "Question",
let timelinePoll = TimelinePollDetails(id: "poll-id",
question: "Question",
answerOptions: answerOptions,
closed: false,
startDate: .init(),
totalAnswerCount: 3,
type: .disclosed,
eventType: .started,