This PR adds unit tests for the CreateTransactionViewModel in the CreateTransactionViewModelTest.swift file. The unit tests use the TransactionsManagerMock to properly test the functionality of the CreateTransactionViewModel.
Summary of Changes
Created a new file called TransactionsManagerMock.swift in the CashBudTests/Mocks/Managers/ directory. This file contains a mock implementation of the TransactionsManager class with all necessary variables set for testing the CreateTransactionViewModel.
Modified the CreateTransactionViewModelTest.swift file in the CashBudTests/Tests/ViewModels/ directory to add unit tests for the CreateTransactionViewModel.
Used the TransactionsManagerMock to instantiate the CreateTransactionViewModel and test its functionality.
Please review and merge this PR to ensure proper testing of the CreateTransactionViewModel.
Fixes #80.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
PR Feedback (click)
Description
This PR adds unit tests for the CreateTransactionViewModel in the CreateTransactionViewModelTest.swift file. The unit tests use the TransactionsManagerMock to properly test the functionality of the CreateTransactionViewModel.
Summary of Changes
Please review and merge this PR to ensure proper testing of the CreateTransactionViewModel.
Fixes #80.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: