Skip to content

Commit aa5105a

Browse files
author
renkelvin
committed
Update SwiftAPI.swift
1 parent f3dd103 commit aa5105a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

FirebaseAuth/Tests/Unit/SwiftAPI.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,9 @@ class AuthAPI_hOnlyTests: XCTestCase {
9696

9797
func FIRAuth_h(credential: AuthCredential) throws {
9898
let auth = FirebaseAuth.Auth.auth()
99-
let authApp = FirebaseAuth.Auth.auth(app: FirebaseApp.app()!)
10099
let user = auth.currentUser!
101100
auth.updateCurrentUser(user) { _ in
102101
}
103-
authApp.fetchSignInMethods(forEmail: "abc@abc.com") { string, error in
104-
}
105102
auth.signIn(withEmail: "abc@abc.com", password: "password") { result, error in
106103
}
107104
auth.signIn(withEmail: "abc@abc.com", link: "link") { result, error in
@@ -173,7 +170,6 @@ class AuthAPI_hOnlyTests: XCTestCase {
173170
let auth = FirebaseAuth.Auth.auth()
174171
let user = auth.currentUser!
175172
try await auth.updateCurrentUser(user)
176-
_ = try await auth.fetchSignInMethods(forEmail: "abc@abc.com")
177173
_ = try await auth.signIn(withEmail: "abc@abc.com", password: "password")
178174
_ = try await auth.signIn(withEmail: "abc@abc.com", link: "link")
179175
_ = try await auth.signIn(with: credential)
@@ -574,8 +570,6 @@ class AuthAPI_hOnlyTests: XCTestCase {
574570
let auth = FirebaseAuth.Auth.auth()
575571
let user = auth.currentUser!
576572
let credential = GoogleAuthProvider.credential(withIDToken: "token", accessToken: "aToken")
577-
user.updateEmail(to: "email") { _ in
578-
}
579573
user.updatePassword(to: "password") { _ in
580574
}
581575
let changeRequest = user.createProfileChangeRequest()
@@ -648,7 +642,6 @@ class AuthAPI_hOnlyTests: XCTestCase {
648642
let auth = FirebaseAuth.Auth.auth()
649643
let user = auth.currentUser!
650644
let credential = GoogleAuthProvider.credential(withIDToken: "token", accessToken: "aToken")
651-
try await user.updateEmail(to: "email")
652645
try await user.updatePassword(to: "password")
653646
let changeRequest = user.createProfileChangeRequest()
654647
try await user.reload()

0 commit comments

Comments
 (0)