Feature/456 Add Financial Report Controllers and Refactor Tests for Comprehensive Coverage #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces three new controllers and refactors test cases to enhance the Financial Report API's robustness, maintainability, and validation. Key updates include:
New Controllers:
Test Enhancements:
Key Changes:
financialReportLogicController.js
,financialReportAuthController.js
, andfinancialReportCRUDController.js
.financialReportLogic.test.js
financialReportAuth.test.js
financialReportCRUD.test.js
globalSetup.js
for consistent database setup and teardown across all test cases.Impact:
This refactor strengthens the integrity of the Financial Report API, providing detailed validation, security measures, and consistent data handling, while ensuring better coverage across different business and access scenarios.