radicalplatforms / shafa

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

Create POST /api/outfits unit test #73

Open rak3rman opened 6 months ago

rak3rman commented 6 months ago

Description

Create a full-fledged unit test for the POST /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