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
@@ -36,7 +36,7 @@ protocol NotificationManagerProtocol {
var delegate: NotificationManagerDelegate? { get set }
func start()
func register(with deviceToken: Data)
func register(with deviceToken: Data, completion: ((Bool) -> Void)?)
func registrationFailed(with error: Error)
func showLocalNotification(with title: String, subtitle: String?)
}