ShreyTanna29/curious.AI

add unit tests for all routes.

开放

#96 创建于 2024年12月31日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (16 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (5 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南