Skip to content

Commit

Permalink
Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Oct 12, 2024
1 parent 4708998 commit 6e8d07c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions Tests/OrdersTests/EncryptedOrdersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import Zip

@testable import Orders

@Suite("Orders Tests with encrypted PEM key")
@Suite("Orders Tests with Encrypted PEM Key")
struct EncryptedOrdersTests {
let delegate = EncryptedOrdersDelegate()
let ordersURI = "/api/orders/v1/"

@Test("Test order generation")
@Test("Order Generation")
func orderGeneration() async throws {
try await withApp(delegate: delegate) { app, ordersService in
let orderData = OrderData(title: "Test Order")
Expand All @@ -38,7 +38,7 @@ struct EncryptedOrdersTests {
}
}

@Test("Test APNS client")
@Test("APNS Client")
func apnsClient() async throws {
try await withApp(delegate: delegate) { app, ordersService in
#expect(app.apns.client(.init(string: "orders")) != nil)
Expand Down
14 changes: 7 additions & 7 deletions Tests/OrdersTests/OrdersTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct OrdersTests {
let delegate = TestOrdersDelegate()
let ordersURI = "/api/orders/v1/"

@Test("Test order generation")
@Test("Order Generation")
func orderGeneration() async throws {
try await withApp(delegate: delegate) { app, ordersService in
let orderData = OrderData(title: "Test Order")
Expand Down Expand Up @@ -39,7 +39,7 @@ struct OrdersTests {
}
}

@Test("Getting order from Apple Wallet API")
@Test("Getting Order from Apple Wallet API")
func getOrderFromAPI() async throws {
try await withApp(delegate: delegate) { app, ordersService in
let orderData = OrderData(title: "Test Order")
Expand Down Expand Up @@ -115,7 +115,7 @@ struct OrdersTests {
}
}

@Test("Test device registration API")
@Test("Device Registration API")
func apiDeviceRegistration() async throws {
try await withApp(delegate: delegate) { app, ordersService in
let orderData = OrderData(title: "Test Order")
Expand Down Expand Up @@ -268,7 +268,7 @@ struct OrdersTests {
}
}

@Test("Test error logging")
@Test("Error Logging")
func errorLog() async throws {
try await withApp(delegate: delegate) { app, ordersService in
let log1 = "Error 1"
Expand Down Expand Up @@ -313,7 +313,7 @@ struct OrdersTests {
}
}

@Test("Test APNS client")
@Test("APNS Client")
func apnsClient() async throws {
try await withApp(delegate: delegate) { app, ordersService in
#expect(app.apns.client(.init(string: "orders")) != nil)
Expand Down Expand Up @@ -387,15 +387,15 @@ struct OrdersTests {
}
}

@Test("Test OrdersError")
@Test("OrdersError")
func ordersError() {
#expect(OrdersError.templateNotDirectory.description == "OrdersError(errorType: templateNotDirectory)")
#expect(OrdersError.pemCertificateMissing.description == "OrdersError(errorType: pemCertificateMissing)")
#expect(OrdersError.pemPrivateKeyMissing.description == "OrdersError(errorType: pemPrivateKeyMissing)")
#expect(OrdersError.opensslBinaryMissing.description == "OrdersError(errorType: opensslBinaryMissing)")
}

@Test("Test default OrdersDelegate properties")
@Test("Default OrdersDelegate Properties")
func defaultDelegate() {
let delegate = DefaultOrdersDelegate()
#expect(delegate.wwdrCertificate == "WWDR.pem")
Expand Down
8 changes: 4 additions & 4 deletions Tests/PassesTests/EncryptedPassesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import Zip

@testable import Passes

@Suite("Passes Tests with encrypted PEM key")
@Suite("Passes Tests with Encrypted PEM Key")
struct EncryptedPassesTests {
let delegate = EncryptedPassesDelegate()
let passesURI = "/api/passes/v1/"

@Test("Test pass generation")
@Test("Pass Generation")
func passGeneration() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Test Pass")
Expand Down Expand Up @@ -38,7 +38,7 @@ struct EncryptedPassesTests {
}
}

@Test("Personalizable pass Apple Wallet API")
@Test("Personalizable Pass Apple Wallet API")
func personalizationAPI() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Personalize")
Expand Down Expand Up @@ -85,7 +85,7 @@ struct EncryptedPassesTests {
}
}

@Test("Test APNS client")
@Test("APNS Client")
func apnsClient() async throws {
try await withApp(delegate: delegate) { app, passesService in
#expect(app.apns.client(.init(string: "passes")) != nil)
Expand Down
20 changes: 10 additions & 10 deletions Tests/PassesTests/PassesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct PassesTests {
let delegate = TestPassesDelegate()
let passesURI = "/api/passes/v1/"

@Test("Test pass generation")
@Test("Pass Generation")
func passGeneration() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Test Pass")
Expand Down Expand Up @@ -41,7 +41,7 @@ struct PassesTests {
}
}

@Test("Test generating multiple passes")
@Test("Generating Multiple Passes")
func passesGeneration() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData1 = PassData(title: "Test Pass 1")
Expand All @@ -64,7 +64,7 @@ struct PassesTests {
}
}

@Test("Test personalizable pass")
@Test("Personalizable Passes")
func personalization() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Personalize")
Expand Down Expand Up @@ -94,7 +94,7 @@ struct PassesTests {
}
}

@Test("Getting pass from Apple Wallet API")
@Test("Getting Pass from Apple Wallet API")
func getPassFromAPI() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Test Pass")
Expand Down Expand Up @@ -170,7 +170,7 @@ struct PassesTests {
}
}

@Test("Personalizable pass Apple Wallet API")
@Test("Personalizable Pass Apple Wallet API")
func personalizationAPI() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Personalize")
Expand Down Expand Up @@ -240,7 +240,7 @@ struct PassesTests {
}
}

@Test("Test device registration API")
@Test("Device Registration API")
func apiDeviceRegistration() async throws {
try await withApp(delegate: delegate) { app, passesService in
let passData = PassData(title: "Test Pass")
Expand Down Expand Up @@ -393,7 +393,7 @@ struct PassesTests {
}
}

@Test("Test error logging")
@Test("Error Logging")
func errorLog() async throws {
try await withApp(delegate: delegate) { app, passesService in
let log1 = "Error 1"
Expand Down Expand Up @@ -438,7 +438,7 @@ struct PassesTests {
}
}

@Test("Test APNS client")
@Test("APNS Client")
func apnsClient() async throws {
try await withApp(delegate: delegate) { app, passesService in
#expect(app.apns.client(.init(string: "passes")) != nil)
Expand Down Expand Up @@ -512,7 +512,7 @@ struct PassesTests {
}
}

@Test("Test PassesError")
@Test("PassesError")
func passesError() {
#expect(PassesError.templateNotDirectory.description == "PassesError(errorType: templateNotDirectory)")
#expect(PassesError.pemCertificateMissing.description == "PassesError(errorType: pemCertificateMissing)")
Expand All @@ -521,7 +521,7 @@ struct PassesTests {
#expect(PassesError.invalidNumberOfPasses.description == "PassesError(errorType: invalidNumberOfPasses)")
}

@Test("Test default PassesDelegate properties")
@Test("Default PassesDelegate Properties")
func defaultDelegate() async throws {
let defaultDelegate = DefaultPassesDelegate()
#expect(defaultDelegate.wwdrCertificate == "WWDR.pem")
Expand Down

0 comments on commit 6e8d07c

Please sign in to comment.