Skip to content

Commit 40dfd73

Browse files
author
Sharma Elanthiriayan
committed
Refactor sampleOrderTaxLines method to use .init.
1 parent cb2f5df commit 40dfd73

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Yosemite/YosemiteTests/Stores/OrderStoreTests.swift

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -913,16 +913,17 @@ private extension OrderStoreTests {
913913
}
914914

915915
func sampleOrderTaxLines() -> [Networking.OrderTaxLine] {
916-
let tax = OrderTaxLine(taxID: 1330,
917-
rateCode: "US-NY-STATE-2",
918-
rateID: 6,
919-
label: "State",
920-
isCompoundTaxRate: true,
921-
totalTax: "7.71",
922-
totalShippingTax: "0.00",
923-
ratePercent: 4.5,
924-
attributes: [])
925-
return [tax]
916+
[
917+
.init(taxID: 1330,
918+
rateCode: "US-NY-STATE-2",
919+
rateID: 6,
920+
label: "State",
921+
isCompoundTaxRate: true,
922+
totalTax: "7.71",
923+
totalShippingTax: "0.00",
924+
ratePercent: 4.5,
925+
attributes: [])
926+
]
926927
}
927928

928929
func sampleOrderTaxLinesMutated() -> [Networking.OrderTaxLine] {

0 commit comments

Comments
 (0)