Skip to content

Commit 1a44794

Browse files
committed
Fix currency test
1 parent 844525f commit 1a44794

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WooCommerce/Classes/Tools/Currency/Currency.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct Currency {
1212
case rightSpace = "right_space"
1313
}
1414

15-
var amount: NSDecimalNumber
15+
var amount: String?
1616

1717
let code: Code
1818

WooCommerce/WooCommerceTests/Tools/CurrencyTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CurrencyTests: XCTestCase {
99
/// Test currency symbol lookup returns correctly encoded symbol.
1010
///
1111
func testCurrencySymbol() {
12-
let currency = Currency(amount: 0.00, code: .AED, position: .left)
12+
let currency = Currency(amount: "0.00", code: .AED, position: .left)
1313
let symbol = currency.symbol
1414
XCTAssertEqual("د.إ", symbol)
1515
}

0 commit comments

Comments
 (0)