Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
55 stars 258 forks source link

Write Test for Authenticate Middleware #2217

Open vikasosmium opened 1 month ago

vikasosmium commented 1 month ago

Issue Description

Currently, we don't have any test written for our authentication middleware, which is very critical for all features.

Expected Behavior

Test should verify and mock the middleware to check all the functionalities and edge cases.

Current Behavior

There are no existing test file for the /middlewares/authenticate.

Screenshots

Reproducibility

Steps to Reproduce

  1. Look for test file in the \test\unit\middlewares.
  2. Notice the absence of test file for the authenticate middleware.

Severity/Priority

Additional Information

Checklist