1
0
Fork 0
mirror of https://github.com/metabolist/metatext.git synced 2025-03-06 05:41:00 +00:00
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())
}