website-backend icon indicating copy to clipboard operation
website-backend copied to clipboard

Write Test for Authenticate Middleware

Open vikasosmium opened this issue 1 year ago • 0 comments

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

  • [x] This issue is reproducible
  • [ ] This issue is not reproducible

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

  • [ ] Critical
  • [ ] High
  • [x] Medium
  • [ ] Low

Additional Information

Checklist

  • [x] I have read and followed the project's code of conduct.
  • [x] I have searched for similar issues before creating this one.
  • [x] I have provided all the necessary information to understand and reproduce the issue.
  • [x] I am willing to contribute to the resolution of this issue.

vikasosmium avatar Oct 18 '24 16:10 vikasosmium