Skip to content

Commit

Permalink
fix(GiniCaptureSDK): Fix unit tests
Browse files Browse the repository at this point in the history
PP-392
  • Loading branch information
ValentinaIancu-Gini committed Apr 17, 2024
1 parent 8f4168e commit 79d513f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ final class GiniScreenAPICoordinatorTests: XCTestCase {

let rootViewController = coordinator.start(withDocuments: capturedImages)
_ = rootViewController.view
let errorType = ErrorType(error: .server)
let errorType = ErrorType(error: .server(errorCode: 502))
coordinator.displayError(errorType: errorType, animated: false)
let screenNavigator = rootViewController.children.first as? UINavigationController
let errorScreen = screenNavigator?.viewControllers.last as? ErrorScreenViewController
Expand All @@ -193,7 +193,7 @@ final class GiniScreenAPICoordinatorTests: XCTestCase {

let rootViewController = coordinator.start(withDocuments: capturedImages)
_ = rootViewController.view
let errorType = ErrorType(error: .maintenance)
let errorType = ErrorType(error: .maintenance(errorCode: 503))
coordinator.displayError(errorType: errorType, animated: false)
let screenNavigator = rootViewController.children.first as? UINavigationController
let errorScreen = screenNavigator?.viewControllers.last as? ErrorScreenViewController
Expand All @@ -212,7 +212,7 @@ final class GiniScreenAPICoordinatorTests: XCTestCase {

let rootViewController = coordinator.start(withDocuments: capturedImages)
_ = rootViewController.view
let errorType = ErrorType(error: .outage)
let errorType = ErrorType(error: .outage(errorCode: 500))
coordinator.displayError(errorType: errorType, animated: false)
let screenNavigator = rootViewController.children.first as? UINavigationController
let errorScreen = screenNavigator?.viewControllers.last as? ErrorScreenViewController
Expand Down

0 comments on commit 79d513f

Please sign in to comment.