Skip to content

Commit a0d1c2c

Browse files
author
Sharma Elanthiriayan
committed
ReceiptStoreTests
- Stop calculating mock tax lines.
1 parent 561c6f1 commit a0d1c2c

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Yosemite/YosemiteTests/Stores/ReceiptStoreTests.swift

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ private extension ReceiptStoreTests {
406406
totalTax: String = "",
407407
items: [Yosemite.OrderItem] = [],
408408
coupons: [OrderCouponLine] = [],
409-
fees: [Yosemite.OrderFeeLine] = []) -> Networking.Order {
409+
fees: [Yosemite.OrderFeeLine] = [],
410+
taxes: [Yosemite.OrderTaxLine] = []) -> Networking.Order {
410411
Order(siteID: 1234,
411412
orderID: 0,
412413
parentID: 0,
@@ -434,7 +435,7 @@ private extension ReceiptStoreTests {
434435
coupons: coupons,
435436
refunds: [],
436437
fees: fees,
437-
taxes: [makeOrderTaxLine(totalShippingTax: shippingTax, totalTax: totalTax)])
438+
taxes: taxes)
438439
}
439440

440441
func expectedDiscountLineDescription() -> String {
@@ -474,17 +475,4 @@ private extension ReceiptStoreTests {
474475
totalTax: "",
475476
attributes: [])
476477
}
477-
478-
func makeOrderTaxLine(totalShippingTax: String,
479-
totalTax: String) -> Yosemite.OrderTaxLine {
480-
.init(taxID: 123,
481-
rateCode: "",
482-
rateID: 1,
483-
label: "State",
484-
isCompoundTaxRate: false,
485-
totalTax: totalTax,
486-
totalShippingTax: totalShippingTax,
487-
ratePercent: 5.5,
488-
attributes: [])
489-
}
490478
}

0 commit comments

Comments
 (0)