Skip to content

Add unit tests for annotations endpoint #267 - #402

Merged
mudabs merged 1 commit into
oss-slu:mainfrom
Subomiadekunle:test-annotations-endpoint-267
Sep 11, 2026
Merged

mudabs merged 1 commit into
oss-slu:mainfrom
Subomiadekunle:test-annotations-endpoint-267

Conversation

@Subomiadekunle

Copy link
Copy Markdown
Collaborator

Summary

Adds unit tests for the GET /api/annotations/:boneId endpoint.

Changes

  • Tests successful annotation retrieval for a valid boneId
  • Verifies the expected response properties and annotation data type
  • Tests invalid boneId input and 400 responses
  • Tests non-existent boneId data and 404 responses
  • Tests the 100-character boneId validation limit

Testing

  • npm test - 16 tests passed
  • npm run lint - passed

Closes #267

@mudabs mudabs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, tests passed!

@mudabs
mudabs merged commit 3b8f9d4 into oss-slu:main Sep 11, 2026
1 check passed
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.

Test /api/annotations/:boneId endpoint

2 participants