Skip to content

Commit 8273d81

Browse files
committed
Update unit test to handle optional methodID
1 parent 3bc1348 commit 8273d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Networking/NetworkingTests/Remote/OrdersRemoteTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ final class OrdersRemoteTests: XCTestCase {
415415
let expected: [String: AnyHashable] = [
416416
"id": shipping.shippingID,
417417
"method_title": shipping.methodTitle,
418-
"method_id": shipping.methodID,
418+
"method_id": shipping.methodID ?? "",
419419
"total": shipping.total
420420
]
421421
assertEqual(received, expected)

0 commit comments

Comments
 (0)