File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Tests/IntegrationTests/Components Tests/PaymentComponent Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public struct SDKData: Codable {
2323
2424 internal let analytics : Analytics
2525 internal private( set) var authentication : Authentication ?
26- internal let schemaVersion : String = SchemaVersions . v1_0
26+ internal let schemaVersion : Int = SchemaVersions . v1
2727 private let supportNativeRedirect : Bool = true
2828 private let timestamp = Int ( Date ( ) . timeIntervalSince1970 * 1000 )
2929
@@ -48,8 +48,7 @@ public struct SDKData: Codable {
4848 }
4949
5050 private enum SchemaVersions {
51- // swiftlint:disable:next identifier_name
52- internal static let v1_0 = " 1.0 "
51+ internal static let v1 = 1
5352 }
5453}
5554
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class PaymentComponentSubjectTests: XCTestCase {
135135
136136 // Verify SDKData contains checkoutAttemptId
137137 XCTAssertEqual ( sdkDataDecoded. analytics. checkoutAttemptId, expectedCheckoutAttemptId)
138- XCTAssertEqual ( sdkDataDecoded. schemaVersion, " 1.0 " )
138+ XCTAssertEqual ( sdkDataDecoded. schemaVersion, 1 )
139139 // Verify through the deprecated property for backward compatibility
140140 XCTAssertEqual ( data. checkoutAttemptId, expectedCheckoutAttemptId)
141141 didSubmitExpectation. fulfill ( )
You can’t perform that action at this time.
0 commit comments