Skip to content

Commit

Permalink
Adding debugging check
Browse files Browse the repository at this point in the history
  • Loading branch information
goergisn committed Oct 9, 2023
1 parent 1645d9a commit 411678e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/DropIn Tests/DropInTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class DropInTests: XCTestCase {
try super.tearDownWithError()
}

func testCancelDropInDelegate() throws {
func testDidCancelOnRedirect() throws {
let config = DropInComponent.Configuration()

let paymentMethodsData = try XCTUnwrap(DropInTests.paymentMethodsWithSingleInstant.data(using: .utf8))
Expand All @@ -156,6 +156,10 @@ class DropInTests: XCTestCase {
delegateMock.didCancelHandler = { _,_ in
waitExpectation.fulfill()
}

delegateMock.didOpenExternalApplicationHandler = { component in
XCTFail("Did open external application handler should not be called (\(String(describing: component)))")
}

sut.delegate = delegateMock

Expand Down

0 comments on commit 411678e

Please sign in to comment.