taskwarrior-flutter
taskwarrior-flutter copied to clipboard
Fix Undefined `baseUrl` and `origin` in API Service Test
Description
This PR resolves compilation errors in api_service_test.dart by defining the missing baseUrl and origin constants. These changes ensure the test suite runs successfully and paves the way for future configuration improvements.
Fixes #479
Changes
- Added
baseUrlandoriginconstants toapi_service_test.dart. - Updated the
fetchTaskstest to use the new constants.
Testing
- Verified that tests pass locally.
- Confirmed no regressions in API interaction logic.
Notes
- Placeholder values (
your-api-base-url.com,your-application-origin) should be replaced with actual values in collaboration with maintainers. - A follow-up issue (#479 ) has been created to centralize configuration.
Checklist
- [x] Tests have been added or updated to cover the changes
- [ ] Documentation has been updated to reflect the changes
- [x] Code follows the established coding style guidelines
- [x] All tests are passing