Skip to content

Commit

Permalink
Format project (#1510)
Browse files Browse the repository at this point in the history
Format project.
  • Loading branch information
goergisn authored Jan 26, 2024
2 parents ed32cda + 8494859 commit 176af8c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions Adyen/Assets/Generated/LocalizationKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -436,4 +436,5 @@ public struct LocalizationKey {
}

}

// swiftlint:enable all
2 changes: 1 addition & 1 deletion Tests/Adyen Tests/Core/PaymentMethodTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class PaymentMethodTests: XCTestCase {
}

private func getPaymentMethods() throws -> PaymentMethods {
return try AdyenCoder.decode(paymentMethodsDictionary) as PaymentMethods
try AdyenCoder.decode(paymentMethodsDictionary) as PaymentMethods
}

// MARK: - Payment Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,25 +204,29 @@ import XCTest
do {
let json = try XCTUnwrap(JSONSerialization.jsonObject(
with: result.payload.dataFromBase64URL(),
options: []) as? [String: Any]
options: []
) as? [String: Any]
)

let expectedJson = try XCTUnwrap(JSONSerialization.jsonObject(
with: expectedResult.payload.dataFromBase64URL(),
options: []) as? [String: Any]
options: []
) as? [String: Any]
)

XCTAssertEqual(json["transStatus"] as? String, expectedJson["transStatus"] as? String)
XCTAssertEqual(json["authorisationToken"] as? String, expectedJson["authorisationToken"] as? String)

let delegatedAuthenticationSDKOutput = try XCTUnwrap(JSONSerialization.jsonObject(
with: XCTUnwrap(json["delegatedAuthenticationSDKOutput"] as? String).dataFromBase64URL(),
options: []) as? [String: Any]
options: []
) as? [String: Any]
)

let expectedDelegatedAuthenticationSDKOutput = try XCTUnwrap(JSONSerialization.jsonObject(
with: XCTUnwrap(expectedJson["delegatedAuthenticationSDKOutput"] as? String).dataFromBase64URL(),
options: []) as? [String: Any]
options: []
) as? [String: Any]
)

XCTAssertEqual(
Expand Down
2 changes: 1 addition & 1 deletion Tests/Card Tests/CardNumbers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation

// Utility class with example test card numbers.
struct CardNumbers {
enum CardNumbers {

static let masterCard = [
"2223000048410010", // Credit NL
Expand Down
2 changes: 1 addition & 1 deletion UITests/Components/SecuredViewControllerUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import Foundation

import XCTest
@_spi(AdyenInternal) @testable import Adyen
@testable import AdyenComponents
@testable import AdyenCard
@testable import AdyenComponents

class SecuredViewControllerUITests: XCTestCase {

Expand Down
13 changes: 6 additions & 7 deletions UITests/Helpers/XCTestCase+SnapshotTesting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ extension XCTestCase {
wait(
until: {
let failure = try! verifySnapshot(
of: viewController(),
as: device.snapshotConfiguration(drawHierarchyInKeyWindow: drawHierarchyInKeyWindow),
named: name,
file: file,
testName: device.testName(for: caller),
line: line
of: viewController(),
as: device.snapshotConfiguration(drawHierarchyInKeyWindow: drawHierarchyInKeyWindow),
named: name,
file: file,
testName: device.testName(for: caller),
line: line
)
return failure == nil
},
Expand All @@ -80,7 +80,6 @@ extension XCTestCase {
)
}


}

extension ViewImageConfig {
Expand Down

0 comments on commit 176af8c

Please sign in to comment.