Open sweep-ai[bot] opened 1 year ago
Do not remove any existing code. Add new unit tests to test the CreateTransactionViewModel only.
Do not remove any existing code. Add new unit tests to test the CreateTransactionViewModel only.
Hi @olvrwn,
I decided to make the following changes:
File Path | Proposed Changes |
---|---|
CashBudTests/CreateTransactionViewModelTest.swift |
Create CashBudTests/CreateTransactionViewModelTest.swift with contents: • Add new unit tests to test the CreateTransactionViewModel. |
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
0.0% Coverage
0.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
PR Feedback (click)
Description
This PR adds unit tests for the CreateTransactionViewModel in the CreateTransactionViewModelTest.swift file. It also includes the creation of a mock implementation of the TransactionsManager class called TransactionsManagerMock.swift in the CashBudTests/Mocks/Managers/ directory. The TransactionsManagerMock is used to instantiate the CreateTransactionViewModel and test its functionality.
Summary of Changes
Fixes #80.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: