wtsi-npg / npg_sentry

Other
0 stars 4 forks source link

Server test listtoken #36

Closed andrew-nowak closed 7 years ago

andrew-nowak commented 7 years ago

Add a test case for /listTokens and test cases for /revokeToken where json input is incorrect.

Incorrect JSON (missing content-type, missing body (malformed body is caught in bodyParser middleware)) for /revokeToken now always causes a 400 response.

Boosts lib/authorisation_controller.js coverage to 100%! :tada: