Code

Rating   Name Duplication Size Complexity CRAP
B module.exports 0 25 1 1
A jwtMiddlewareTests.js ➔ describe(ꞌtest routesꞌ) 0 47 1 1
A jwtMiddlewareTests.js ➔ describe(ꞌTest JWTꞌ) 0 23 1 1
A module.exports 0 23 3 3.01
A jwtMiddlewareTests.js ➔ ... ➔ chai.end 0 5 1 1
A jwtMiddlewareTests.js ➔ ... ➔ it(ꞌstatuscode 200 when using the created tokenꞌ) 0 13 1 1
A jwtMiddlewareTests.js ➔ ... ➔ chai.end 0 5 1 1
A module.exports 0 8 2 2
A jwtMiddlewareTests.js ➔ ... ➔ chai.end 0 5 1 1
A jwtMiddlewareTests.js ➔ ... ➔ it(ꞌ/ should return status 200ꞌ) 0 8 1 1
A jwtMiddlewareTests.js ➔ ... ➔ it(ꞌ/gettoken should return status 200ꞌ) 0 8 1 1
A jwtMiddlewareTests.js ➔ ... ➔ it(ꞌ/test?token=1.1.1 should return status 403 and failedToAuthꞌ) 0 9 1 1
A jwtMiddlewareTests.js ➔ ... ➔ it(ꞌ/test should return status 403ꞌ) 0 9 1 1
A jwtMiddlewareTests.js ➔ ... ➔ chai.end 0 9 1 1
A jwtMiddlewareTests.js ➔ ... ➔ before 0 3 1 1