radicalplatforms / shafa

A wardrobe logging, composition, and organization app
https://shafa.app
Mozilla Public License 2.0
1 stars 0 forks source link

Create GET /api/items unit test #68

Open rak3rman opened 6 months ago

rak3rman commented 6 months ago

Description

Create a full-fledged unit test for the GET /api/items route. This unit test should follow best practice standards for what a unit test is: ensure that all functions called by GET /api/items route are mocked (use the ItemsFactory to your advantage here). This test may end up being quite simple considering that GET /api/items at this time is a wrapper for a drizzle query. Research best standards for writing unit tests, this first set of unit tests will be the standard reference point for other GET requests down the line.

Acceptance Criteria

Generated by Zenhub AI