Skip to content

Commit

Permalink
update BTVenmoClient.canHandleReturnURL test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxdesmarais committed Dec 19, 2024
1 parent 33ebd8b commit 1b0c78b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions UnitTests/BraintreeVenmoTests/BTVenmoClient_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,7 @@ class BTVenmoClient_Tests: XCTestCase {
// MARK: - BTAppContextSwitchClient

func testCanHandleReturnURL_withValidHost_andValidPath_returnsTrue() {
let host = "x-callback-url"
let path = "/vzero/auth/venmo/"
XCTAssertTrue(BTVenmoClient.canHandleReturnURL(URL(string: "fake-scheme://\(host)\(path)fake-result")!))
XCTAssertTrue(BTVenmoClient.canHandleReturnURL(URL(string: "https://www.braintreesample.com/success")!))
}

func testCanHandleReturnURL_withInvalidHost_andValidPath_returnsFalse() {
Expand Down

0 comments on commit 1b0c78b

Please sign in to comment.