Skip to content

Commit 8b96df5

Browse files
committed
Fixed failing unit test
1 parent 494bd14 commit 8b96df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Networking/Networking/Model/Order.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ extension Order: Comparable {
183183
lhs.paymentMethodTitle == rhs.paymentMethodTitle &&
184184
lhs.billingAddress == rhs.billingAddress &&
185185
lhs.shippingAddress == rhs.shippingAddress &&
186-
lhs.coupons == rhs.coupons &&
186+
lhs.coupons.count == rhs.coupons.count &&
187+
lhs.coupons.sorted() == rhs.coupons.sorted() &&
187188
lhs.items.count == rhs.items.count &&
188189
lhs.items.sorted() == rhs.items.sorted()
189190
}

0 commit comments

Comments
 (0)