Skip to content

Submission: tests, bug fixes, and assign endpoint - #55

Open
Arkin26 wants to merge 1 commit into
rohit-ups:mainfrom
Arkin26:submission/untested-api
Open

Submission: tests, bug fixes, and assign endpoint#55
Arkin26 wants to merge 1 commit into
rohit-ups:mainfrom
Arkin26:submission/untested-api

Conversation

@Arkin26

@Arkin26 Arkin26 commented Jul 26, 2026

Copy link
Copy Markdown

Summary

  • Added unit and integration tests for the Task API (49 passing, ~94% statement coverage).
  • Fixed pagination off-by-one (getPaginated) and substring status matching (getByStatus).
  • Implemented PATCH /tasks/:id/assign with validation, plus BUG_REPORT.md and SUBMISSION.md.

Test plan

  • cd task-api && npm install && npm test
  • npm run coverage (expect 80%+)
  • Review task-api/BUG_REPORT.md and task-api/SUBMISSION.md
  • Verify PATCH /tasks/:id/assign with a valid assignee and 404/400 edge cases

Made with Cursor

Catch the off-by-one pagination and substring status filter bugs with
tests, fix both, and ship PATCH /tasks/:id/assign with validation and
submission docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant