Fix identity tests (#2460)
This commit is contained in:
parent
d5b5bb26d2
commit
3655def04f
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -10,7 +10,7 @@ import Foundation
|
|||
import iOSSnapshotTestCase
|
||||
@_spi(STP) import StripeUICore
|
||||
|
||||
@testable import StripeIdentity
|
||||
@testable @_spi(STP) import StripeIdentity
|
||||
|
||||
final class IdentityHTMLViewSnapshotTest: FBSnapshotTestCase {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import UIKit
|
||||
import XCTest
|
||||
|
||||
@testable import StripeIdentity
|
||||
@_spi(STP) import StripeIdentity
|
||||
|
||||
class StripeIdentityAssetTests: XCTestCase {
|
||||
|
||||
|
|
Loading…
Reference in New Issue