website-backend
website-backend copied to clipboard
Write Test for Authenticate Middleware
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
- Look for test file in the \test\unit\middlewares.
- 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.