Skip to content

Commit 2d8b475

Browse files
committed
adds logs
1 parent abfc383 commit 2d8b475

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/FormbricksSDK/Manager/SurveyManager.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ extension SurveyManager {
186186
print(data)
187187
return try? JSONDecoder().decode(EnvironmentResponse.self, from: data)
188188
} else {
189-
print("from survey manager")
190189
let error = FormbricksSDKError(type: .unableToRetrieveEnvironment)
191190
Formbricks.logger?.error(error.message)
192191
return nil

Tests/FormbricksSDKTests/MockFormbricksService/MockFormbricksService.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ class MockFormbricksService: FormbricksService {
8989
// 6️⃣ Decode as before
9090
do {
9191
let body = try JSONDecoder.iso8601Full.decode(T.self, from: jsonData)
92+
UserDefaults.standard.set(data, forKey: "environmentResponseObjectKey")
93+
UserDefaults.standard.synchronize()
9294
completion(.success(body))
9395
} catch {
9496
print("❌ JSON Decode Error for \(name).json: \(error)")

0 commit comments

Comments
 (0)