Skip to content

Commit 6a74398

Browse files
chore: clean up logs/code comments
1 parent a68fe6f commit 6a74398

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/MFAResolutionUITests.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ final class MFAResolutionUITests: XCTestCase {
4141
let password = "12345678"
4242
let phoneNumber = "+15551234567"
4343

44-
4544
// Sign up the user
4645
try await signUpUser(email: email, password: password)
4746

48-
4947
// Get ID token and enable MFA via API
50-
5148
guard let idToken = await getIDTokenFromEmulator(email: email, password: password) else {
5249
XCTFail("Failed to get ID token from emulator")
5350
return
@@ -164,8 +161,6 @@ final class MFAResolutionUITests: XCTestCase {
164161
do {
165162
let (data, _) = try await URLSession.shared.data(for: request)
166163

167-
// Print raw response for debugging
168-
let responseStr = String(data: data, encoding: .utf8)
169164

170165
// Step 1: Parse JSON
171166
guard let jsonObject = try? JSONSerialization.jsonObject(with: data) else {
@@ -237,8 +232,6 @@ final class MFAResolutionUITests: XCTestCase {
237232
print("📡 Finalize HTTP Status: \(httpResponse.statusCode)")
238233
}
239234

240-
// Print raw finalize response
241-
let responseStr = String(data: finalizeData, encoding: .utf8)
242235

243236
guard let json = try? JSONSerialization.jsonObject(with: finalizeData) as? [String: Any] else {
244237
print("❌ Failed to parse finalize response as JSON")
@@ -283,8 +276,6 @@ final class MFAResolutionUITests: XCTestCase {
283276
do {
284277
let (data, _) = try await URLSession.shared.data(from: url)
285278

286-
// Print raw response for debugging
287-
let responseStr = String(data: data, encoding: .utf8)
288279

289280
guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
290281
let codes = json["verificationCodes"] as? [[String: Any]] else {
@@ -332,7 +323,6 @@ final class MFAResolutionUITests: XCTestCase {
332323
// Get the last matching code (most recent)
333324
if let lastCode = matchingCodes.last,
334325
let code = lastCode["code"] as? String {
335-
print("✅ Retrieved code: \(code)")
336326
return code
337327
}
338328

@@ -382,9 +372,6 @@ final class MFAResolutionUITests: XCTestCase {
382372
guard let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
383373
let idToken = json["idToken"] as? String else {
384374
print("Failed to parse sign-in response")
385-
if let responseStr = String(data: data, encoding: .utf8) {
386-
print("Response: \(responseStr)")
387-
}
388375
return nil
389376
}
390377

0 commit comments

Comments
 (0)