Skip to content

Commit 42e70b8

Browse files
committed
tests
1 parent f3c07b7 commit 42e70b8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Sources/FormbricksSDK/Networking/Service/FormbricksService.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Tests/FormbricksSDKTests/MockFormbricksService/MockFormbricksService.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)