Fix identity tests (#2460)

This commit is contained in:
davidme-stripe 2023-04-12 14:10:11 -07:00 committed by GitHub
parent d5b5bb26d2
commit 3655def04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -11,8 +11,8 @@ import Foundation
/// The canonical set of all image files in the `StripeIdentity` module.
/// This helps us avoid duplicates and automatically test that all images load properly
enum Image: String, CaseIterable, ImageMaker {
typealias BundleLocator = StripeIdentityBundleLocator
@_spi(STP) public enum Image: String, CaseIterable, ImageMaker {
@_spi(STP) public typealias BundleLocator = StripeIdentityBundleLocator
case iconAdd = "icon_add"
case iconCheckmark = "icon_checkmark"

View File

@ -9,11 +9,11 @@
import Foundation
@_spi(STP) import StripeCore
final class StripeIdentityBundleLocator: BundleLocatorProtocol {
static let internalClass: AnyClass = StripeIdentityBundleLocator.self
static let bundleName = "StripeIdentity"
@_spi(STP) public final class StripeIdentityBundleLocator: BundleLocatorProtocol {
@_spi(STP) public static let internalClass: AnyClass = StripeIdentityBundleLocator.self
@_spi(STP) public static let bundleName = "StripeIdentity"
#if SWIFT_PACKAGE
static let spmResourcesBundle = Bundle.module
@_spi(STP) public static let spmResourcesBundle = Bundle.module
#endif
static let resourcesBundle = StripeIdentityBundleLocator.computeResourcesBundle()
@_spi(STP) public static let resourcesBundle = StripeIdentityBundleLocator.computeResourcesBundle()
}

View File

@ -11,7 +11,7 @@ import iOSSnapshotTestCase
@_spi(STP) import StripeUICore
import UIKit
@testable import StripeIdentity
@testable @_spi(STP) import StripeIdentity
class HeaderIconViewSnapshotTest: FBSnapshotTestCase {
let iconView = HeaderIconView()

View File

@ -10,7 +10,7 @@ import Foundation
import iOSSnapshotTestCase
@_spi(STP) import StripeUICore
@testable import StripeIdentity
@testable @_spi(STP) import StripeIdentity
final class IdentityHTMLViewSnapshotTest: FBSnapshotTestCase {

View File

@ -7,7 +7,7 @@
import UIKit
import XCTest
@testable import StripeIdentity
@_spi(STP) import StripeIdentity
class StripeIdentityAssetTests: XCTestCase {