Skip to content

Commit

Permalink
Fix tests and swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopsaheysa committed Jul 9, 2024
1 parent 0302bb0 commit 37e38d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public class WMTTemplates: Codable {
/// Attribute which will be used for the image
public let image: AttributeFormatted?


// MARK: - Internals

private enum Keys: CodingKey {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ open class WMTUserOperation: WMTOperation, Codable {
public let statusReason: String?
}


private let jsonDecoder: JSONDecoder = {
let decoder = JSONDecoder()
decoder.dateDecodingStrategy = .iso8601
Expand Down
9 changes: 3 additions & 6 deletions WultraMobileTokenSDKTests/OperationUIDataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,9 @@ class OperationUIDataTests: XCTestCase {
}

XCTAssertEqual(uiResult.templates?.list?.style, "POSITIVE")
XCTAssertEqual(uiResult.templates?.list?.header?.type, .formatted)
XCTAssertEqual(uiResult.templates?.list?.header?.value, "${operation.request_no} Withdrawal Initiation")
XCTAssertEqual(uiResult.templates?.list?.title?.type, .plain)
XCTAssertEqual(uiResult.templates?.list?.title?.value, "operation.amount")
XCTAssertEqual(uiResult.templates?.list?.message?.type, .formatted)
XCTAssertEqual(uiResult.templates?.list?.message?.value, "${operation.date} - ${operation.place}")
XCTAssertEqual(uiResult.templates?.list?.header, "${operation.request_no} Withdrawal Initiation")
XCTAssertEqual(uiResult.templates?.list?.title, "operation.amount")
XCTAssertEqual(uiResult.templates?.list?.message, "${operation.date} - ${operation.place}")
XCTAssertEqual(uiResult.templates?.list?.image, "operation.image")

XCTAssertEqual(uiResult.templates?.detail?.style, nil)
Expand Down

0 comments on commit 37e38d3

Please sign in to comment.