Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GET /api/outfits unit test #72

Open
1 task
rak3rman opened this issue Feb 24, 2024 · 0 comments
Open
1 task

Create GET /api/outfits unit test #72

rak3rman opened this issue Feb 24, 2024 · 0 comments
Labels
backend Related to the hono backend test Related to testing; no production code change

Comments

@rak3rman
Copy link
Member

rak3rman commented Feb 24, 2024

Description

Create a full-fledged unit test for the GET /api/outfits route. This unit test should follow best practice standards for what a unit test is: ensure that all functions called by route are mocked (use the factory objects to your advantage here). This test may end up being quite simple considering that the route is just a wrapper for a drizzle query. Research best standards for writing unit tests. Make sure to test for ALL edge cases.

Acceptance Criteria

Generated by Zenhub AI

  • Scenario: Testing GET /api/outfits route
  • Given the GET /api/outfits route is called
  • When the route is called with valid input
  • Then the response should be a list of outfits
  • And all functions called by the route are mocked
  • And all edge cases are tested
  • And the test follows best practice standards for unit tests
@rak3rman rak3rman added test Related to testing; no production code change backend Related to the hono backend labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to the hono backend test Related to testing; no production code change
Projects
None yet
Development

No branches or pull requests

1 participant