File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Sources/FormbricksSDK/Networking/Service
Tests/FormbricksSDKTests/MockFormbricksService Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ class FormbricksService: FormbricksServiceProtocol {
55 /// Get the current environment state.
66 func getEnvironmentState( completion: @escaping ( ResultType < GetEnvironmentRequest . Response > ) -> Void ) {
77 let endPointRequest = GetEnvironmentRequest ( )
8+ print ( " from real getEnvironmentState " )
9+ print ( endPointRequest)
810 execute ( endPointRequest, withCompletion: completion)
911 }
1012
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class MockFormbricksService: FormbricksService {
1212 var isErrorResponseNeeded = false
1313
1414 override func getEnvironmentState( completion: @escaping ( ResultType < GetEnvironmentRequest . Response > ) -> Void ) {
15+ print ( " from mocked getEnvironmentState " )
1516 if isErrorResponseNeeded {
1617 completion ( . failure( RuntimeError ( message: " " ) ) )
1718 } else {
You can’t perform that action at this time.
0 commit comments