Skip to content

Commit fe11a47

Browse files
fix: swift test compilation
1 parent 07cb232 commit fe11a47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sample/ios/ReactNativeTests/RCTCheckoutWebViewTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class RCTCheckoutWebViewTests: XCTestCase {
321321
appliedGiftCards: [],
322322
discountAllocations: [],
323323
delivery: CartDelivery(addresses: []),
324-
payment: .init(instruments: [])
324+
payment: .init(methods: [])
325325
)
326326
let event = CheckoutStartEvent(cart: cart, locale: "en-US")
327327

@@ -589,18 +589,18 @@ private func createTestCart(
589589
appliedGiftCards: [],
590590
discountAllocations: [],
591591
delivery: .init(addresses: []),
592-
payment: .init(instruments: [])
592+
payment: .init(methods: [])
593593
)
594594
}
595595

596596
/// Creates a CheckoutCompleteEvent for testing
597597
private func createEmptyCheckoutCompleteEvent(id: String) -> CheckoutCompleteEvent {
598598
return CheckoutCompleteEvent(
599599
orderConfirmation: OrderConfirmation(
600-
url: "https://example.com/order",
601600
order: OrderConfirmation.Order(id: id),
602-
number: "1001",
603-
isFirstOrder: true
601+
isFirstOrder: true,
602+
url: "https://example.com/order",
603+
number: "1001"
604604
),
605605
cart: createTestCart()
606606
)

0 commit comments

Comments
 (0)