Skip to content

Commit ef05efe

Browse files
committed
Fix test which should have expected nil, not “”
1 parent f547ee9 commit ef05efe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Networking/NetworkingTests/Mapper/PaymentGatewayListMapperTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class PaymentGatewayListMapperTests: XCTestCase {
1717
let gateways = try PaymentGatewayListMapper(siteID: Self.sampleSiteID).map(response: jsonData)
1818

1919
// Then
20-
XCTAssertEqual(gateways, expectedGateways)
20+
assertEqual(expectedGateways, gateways)
2121
}
2222
}
2323

@@ -32,15 +32,15 @@ private extension PaymentGatewayListMapperTests {
3232
"Your order will not be shipped until the funds have cleared in our account.",
3333
enabled: false,
3434
features: [.products],
35-
instructions: "")
35+
instructions: nil)
3636

3737
static let checkGateway = PaymentGateway(siteID: sampleSiteID,
3838
gatewayID: "cheque",
3939
title: "Check payments",
4040
description: "Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.",
4141
enabled: false,
4242
features: [.products],
43-
instructions: "")
43+
instructions: nil)
4444

4545
static let cashGateway = PaymentGateway(siteID: sampleSiteID,
4646
gatewayID: "cod",
@@ -56,5 +56,5 @@ private extension PaymentGatewayListMapperTests {
5656
description: "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account.",
5757
enabled: false,
5858
features: [.products, .refunds],
59-
instructions: "")
59+
instructions: nil)
6060
}

0 commit comments

Comments
 (0)