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:

Subtasks:

  1. Create src/middleware/requireAuth.test.ts.
  2. Write tests to verify the behavior of the middleware for authorized and unauthorized requests.
  3. Input: Request with valid and invalid tokens.
  4. Output: 200 for authorized requests, 401 for unauthorized requests.