This repository was archived by the owner on Jan 5, 2023. It is now read-only.
checkAuth tests
Adds tests for checkAuth route handler using previously defined mockRequest and mockResponse.
The route just reads from res.session.data and depending on the contents of the session, 401s (session is empty/invalid) or 200s with part of the contents of it.