ShreyTanna29/curious.AI

add unit tests for all routes.

Aperta

#96 aperta il 31 dic 2024

 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (16 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (5 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Is your feature request related to a problem? Please describe. N/A

Describe the solution you'd like adding tests to all routes using jest

Describe alternatives you've considered N/A

Check if applicable

  • I have checked that this feature request does not exists on issues page.

Additional context tests needs to be written for all this routes and for now just add basic tests like when requested to it, do they return 200 response, you can pick all or any one you like :

  • image route : should response 200 when sent an prompt and should give status code 200 when clicked on surprise me button
  • chat route : should respond 200 status code when chat request is made
  • code route : should respond 200 status code when code request is made
  • login : should give 200 when credentials are correct and 401 when credentials are incorrect and 400 when credentials are not sent.
  • singup : should give stauts 200 when credentials are present and 400 status if any one of the credentials are not sent.

NOTE : don't wait for issue to be assigned, just drop a comment here that on which route you are working on and start contibuting.

Guida contributor