From e4781ea11f0f1eeddfcb485f81964d194938cdc8 Mon Sep 17 00:00:00 2001 From: Yuki Tokuhiro Date: Mon, 16 Oct 2023 14:37:32 -0700 Subject: [PATCH] lint --- .../ViewControllers/SepaMandateViewController.swift | 2 +- .../PaymentSheet/Views/SheetNavigationBar.swift | 2 +- .../AddressViewControllerSnapshotTests.swift | 2 +- ...edPaymentOptionsViewControllerSnapshotTests.swift | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/SepaMandateViewController.swift b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/SepaMandateViewController.swift index 62609b1a658..26a74d63eaf 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/SepaMandateViewController.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/ViewControllers/SepaMandateViewController.swift @@ -6,9 +6,9 @@ // @_spi(STP) import StripeCore -import UIKit @_spi(STP) import StripePayments @_spi(STP) import StripeUICore +import UIKit class SepaMandateViewController: UIViewController, BottomSheetContentViewController { let requiresFullScreen: Bool = false diff --git a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetNavigationBar.swift b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetNavigationBar.swift index 4a49c0ac432..811bf98271a 100644 --- a/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetNavigationBar.swift +++ b/StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/Views/SheetNavigationBar.swift @@ -61,7 +61,7 @@ class SheetNavigationBar: UIView { return button }() - + fileprivate lazy var titleLabel: UILabel = { let label = PaymentSheetUI.makeHeaderLabel(appearance: appearance) label.isHidden = true diff --git a/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/AddressViewController/AddressViewControllerSnapshotTests.swift b/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/AddressViewController/AddressViewControllerSnapshotTests.swift index a7baf308032..60614fb5fd2 100644 --- a/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/AddressViewController/AddressViewControllerSnapshotTests.swift +++ b/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/AddressViewController/AddressViewControllerSnapshotTests.swift @@ -9,8 +9,8 @@ import iOSSnapshotTestCase @_spi(STP)@testable import StripeCore @_spi(STP)@testable import StripePaymentSheet -@_spi(STP)@testable import StripeUICore @testable import StripePaymentsTestUtils +@_spi(STP)@testable import StripeUICore class AddressViewControllerSnapshotTests: FBSnapshotTestCase { private let addressSpecProvider: AddressSpecProvider = { diff --git a/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentOptionsViewControllerSnapshotTests.swift b/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentOptionsViewControllerSnapshotTests.swift index e8a401272f8..47ca44e95c0 100644 --- a/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentOptionsViewControllerSnapshotTests.swift +++ b/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/SavedPaymentOptionsViewControllerSnapshotTests.swift @@ -7,11 +7,11 @@ import iOSSnapshotTestCase import StripeCoreTestUtils +@_spi(STP) @testable import StripePayments @_spi(STP) @testable import StripePaymentSheet +@testable import StripePaymentsTestUtils @_spi(STP) @testable import StripeUICore -@_spi(STP) @testable import StripePayments import XCTest -@testable import StripePaymentsTestUtils final class SavedPaymentOptionsViewControllerSnapshotTests: FBSnapshotTestCase { override func setUp() { @@ -22,21 +22,21 @@ final class SavedPaymentOptionsViewControllerSnapshotTests: FBSnapshotTestCase { func test_all_saved_pms_and_apple_pay_and_link_dark() { _test_all_saved_pms_and_apple_pay_and_link(darkMode: true) } - + func test_all_saved_pms_and_apple_pay_and_link() { _test_all_saved_pms_and_apple_pay_and_link(darkMode: false) } - + func test_all_saved_pms_and_apple_pay_and_link_custom_appearance() { _test_all_saved_pms_and_apple_pay_and_link(darkMode: false, appearance: ._testMSPaintTheme) } - + func _test_all_saved_pms_and_apple_pay_and_link(darkMode: Bool, appearance: PaymentSheet.Appearance = .default) { // Given saved card.. let paymentMethods = [ STPPaymentMethod._testCard(), STPPaymentMethod._testUSBankAccount(), - STPPaymentMethod._testSEPA() + STPPaymentMethod._testSEPA(), ] // ...saved US Bank Account... // ...and saved SEPA PM...