metatext/ServiceLayer/Sources/ServiceLayerMocks/MockUserNotificationClient.swift
2021-02-04 12:09:05 -08:00

13 lines
448 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import ServiceLayer
public extension UserNotificationClient {
static let mock = UserNotificationClient(
getNotificationSettings: { _ in },
requestAuthorization: { _, _ in },
add: { _, completion in completion?(nil) },
removeDeliveredNotifications: { _ in },
delegateEvents: Empty(completeImmediately: false).eraseToAnyPublisher())
}