taskwarrior-flutter icon indicating copy to clipboard operation
taskwarrior-flutter copied to clipboard

Fix Undefined `baseUrl` and `origin` in API Service Test

Open Shweta-281 opened this issue 8 months ago • 0 comments

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 baseUrl and origin constants to api_service_test.dart.
  • Updated the fetchTasks test 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

Shweta-281 avatar Apr 08 '25 07:04 Shweta-281