stripe-ios/Stripe/StripeiOSTests/STPAPIClient+LinkAccountSes...

24 lines
789 B
Swift

//
// STPAPIClient+LinkAccountSessionTest.swift
// StripeiOSTests
//
// Created by Yuki Tokuhiro on 4/26/23.
//
@testable import StripePayments
import XCTest
final class STPAPIClient_LinkAccountSessionTest: XCTestCase {
func testCreateLinkAccountSessionForDeferredIntent() {
let e = expectation(description: "create link account session")
let apiClient = STPAPIClient(publishableKey: STPTestingDefaultPublishableKey)
apiClient.createLinkAccountSessionForDeferredIntent(sessionId: "mobile_test_\(UUID().uuidString)", amount: nil, currency: nil, onBehalfOf: nil) { linkAccountSession, error in
XCTAssertNil(error)
XCTAssertNotNil(linkAccountSession)
e.fulfill()
}
waitForExpectations(timeout: 10)
}
}