metatext/ServiceLayer/Sources/ServiceLayerMocks/MockUserNotificationClient.swift

14 lines
448 B
Swift
Raw Normal View History

2020-09-01 07:33:49 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import ServiceLayer
public extension UserNotificationClient {
static let mock = UserNotificationClient(
getNotificationSettings: { _ in },
requestAuthorization: { _, _ in },
2021-02-04 20:09:05 +00:00
add: { _, completion in completion?(nil) },
removeDeliveredNotifications: { _ in },
2020-09-01 07:33:49 +00:00
delegateEvents: Empty(completeImmediately: false).eraseToAnyPublisher())
}