Skip to content

@HugoDF HugoDF released this Feb 17, 2019

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.

Assets 2