Skip to content

Commit

Permalink
Properly test the new for-in loops
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 25, 2024
1 parent 867deb3 commit faaa823
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tests/OrdersTests/OrdersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ final class OrdersTests: XCTestCase {
let iconData = try Data(contentsOf: orderFolder.appendingPathComponent("/icon.png"))
let iconHash = Array(SHA256.hash(data: iconData)).hex
XCTAssertEqual(manifestJSON["icon.png"] as? String, iconHash)
XCTAssertNotNil(manifestJSON["pet_store_logo.png"])
}

// Tests the API Apple Wallet calls to get orders
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions Tests/PassesTests/PassesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ final class PassesTests: XCTestCase {
let iconData = try Data(contentsOf: passFolder.appendingPathComponent("/icon.png"))
let iconHash = Array(Insecure.SHA1.hash(data: iconData)).hex
XCTAssertEqual(manifestJSON["icon.png"] as? String, iconHash)
XCTAssertNotNil(manifestJSON["logo.png"])
XCTAssertNotNil(manifestJSON["personalizationLogo.png"])
}

func testPassesGeneration() async throws {
Expand Down
Empty file.

0 comments on commit faaa823

Please sign in to comment.