woocommerce-ios icon indicating copy to clipboard operation
woocommerce-ios copied to clipboard

[Woo POS] Unit tests for `TotalsViewModel`

Open iamgabrielma opened this issue 7 months ago • 1 comments

From the refactor on https://github.com/woocommerce/woocommerce-ios/pull/13211#discussion_r1661382406 we can now test the expected functionality of this bit. A starter list can be found in TotalsViewModelTests:

    func test_isSyncingOrder() {}
    func test_startSyncOrder() {}
    func test_stopSyncOrder() {}
    func test_order() {}
    func test_formattedPrice() {}
    func test_formattedOrderTotalPrice() {}
    func test_formattedOrderTotalTaxPrice() {}
    func test_areAmountsFullyCalculated() {}
    func test_clearOrder() {}
    func test_setOrder() {}

iamgabrielma avatar Jul 02 '24 01:07 iamgabrielma