Improve tests

This commit is contained in:
Alfonso Grillo
2023-01-20 16:55:19 +01:00
parent 69726de367
commit 84d0edac0b
3 changed files with 16 additions and 7 deletions
@@ -33,9 +33,9 @@ final class MockPollHistoryService: PollHistoryServiceProtocol {
}
}
var fetchState: Bool = false
var isLoadingPublisher: AnyPublisher = Just(false).eraseToAnyPublisher()
var isFetching: AnyPublisher<Bool, Never> {
Just(fetchState).eraseToAnyPublisher()
isLoadingPublisher
}
var activePollsData: [TimelinePollDetails] = (1..<10)