Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Woo POS] Unit tests for TotalsViewModel #13217

Open
iamgabrielma opened this issue Jul 2, 2024 · 1 comment
Open

[Woo POS] Unit tests for TotalsViewModel #13217

iamgabrielma opened this issue Jul 2, 2024 · 1 comment
Labels
feature: POS type: task An internally driven task.

Comments

@iamgabrielma
Copy link
Contributor

From the refactor on #13211 (comment) 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 iamgabrielma added type: task An internally driven task. feature: POS labels Jul 2, 2024
@dangermattic
Copy link
Collaborator

dangermattic commented Jul 2, 2024

Thanks for reporting! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: POS type: task An internally driven task.
Projects
None yet
Development

No branches or pull requests

3 participants