From 1b0c78bb472de4bdaa95e1eeaa3c5b6d1b5dd514 Mon Sep 17 00:00:00 2001 From: Jax DesMarais-Leder Date: Thu, 19 Dec 2024 09:14:45 -0600 Subject: [PATCH] update BTVenmoClient.canHandleReturnURL test --- UnitTests/BraintreeVenmoTests/BTVenmoClient_Tests.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UnitTests/BraintreeVenmoTests/BTVenmoClient_Tests.swift b/UnitTests/BraintreeVenmoTests/BTVenmoClient_Tests.swift index 775446031..dbaac7893 100644 --- a/UnitTests/BraintreeVenmoTests/BTVenmoClient_Tests.swift +++ b/UnitTests/BraintreeVenmoTests/BTVenmoClient_Tests.swift @@ -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() {