issues
search
SFU-Blueprint
/
Pedals
Apache License 2.0
0
stars
0
forks
source link
Write Unit Tests for requireAuth.ts Middleware
#4
Open
Sallin142
opened
3 months ago
Sallin142
commented
3 months ago
Description:
Develop unit tests for the requireAuth.ts middleware to ensure it enforces authentication correctly.
Subtasks:
Create src/middleware/requireAuth.test.ts.
Write tests to verify the behavior of the middleware for authorized and unauthorized requests.
Input: Request with valid and invalid tokens.
Output: 200 for authorized requests, 401 for unauthorized requests.
Description:
Subtasks: