Added unit tests for NotificationManager (#376)

* NotificationManager tests

* More unit tests

* More tests, moved classes to separate files

* Removed warnings

* UserNotificationCenterProtocol as AnyObject

* Reverted back Package.resolved
This commit is contained in:
Aleksandrs Proskurins
2022-12-21 12:06:30 +02:00
committed by GitHub
parent 71f1f044c7
commit a9f2e1bdf8
12 changed files with 577 additions and 22 deletions
@@ -302,7 +302,7 @@ class AppCoordinator: AppCoordinatorProtocol {
.sink { [weak self] callback in
switch callback {
case .registeredNotifications(let deviceToken):
self?.notificationManager?.register(with: deviceToken)
self?.notificationManager?.register(with: deviceToken, completion: nil)
case .failedToRegisteredNotifications(let error):
self?.notificationManager?.registrationFailed(with: error)
}