Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions FirebaseCore/Tests/SwiftUnit/FirebaseAppTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,22 +340,20 @@ class FirebaseAppTests: XCTestCase {
// MARK: - Helpers

private func expectAppConfigurationNotification(appName: String, isDefaultApp: Bool) {
let expectedUserInfo: NSDictionary = [
let expectedUserInfo: [String: Any] = [
"FIRAppNameKey": appName,
"FIRAppIsDefaultAppKey": NSNumber(value: isDefaultApp),
"FIRGoogleAppIDKey": Constants.Options.googleAppID,
]

expectation(forNotification: NSNotification.Name.firAppReadyToConfigureSDK,
object: FirebaseApp.self, handler: { notification -> Bool in
if let userInfo = notification.userInfo {
if expectedUserInfo.isEqual(to: userInfo) {
return true
}
} else {
guard let userInfo = notification.userInfo else {
XCTFail("Failed to unwrap notification user info")
return false
}
return false
return NSDictionary(dictionary: expectedUserInfo) ==
NSDictionary(dictionary: userInfo)
})
}
}
Loading