C:\Users\Paulimar\Documents\TECHAID\TESTING\auth0-test>npm test > @ test C:\Users\Paulimar\Documents\TECHAID\TESTING\auth0-test > mocha --timeout 15000 Request without authorization header field V GET /api/public return 200 OK V GET /api/private return 401 Unauthorized V GET /api/private-scoped return 401 Unauthorized Request with authorization header field Authorization header field with value 'Bearer ' V GET /api/private return 401 Unauthorized V GET /api/private-scoped return 401 Unauthorized Authorization header field with value ' ' V GET /api/private return 401 Unauthorized V GET /api/private-scoped return 401 Unauthorized Authorization header with invalid token V GET /api/private return 401 Unauthorized (1630ms) V GET /api/private-scoped return 401 Unauthorized (1113ms) Authorization header field with value 'Bearer invalidToken abc' V GET /api/private return 401 Unauthorized V GET /api/private-scoped return 401 Unauthorized Token with invalid signature 1) GET /api/private return 401 Unauthorized 2) GET /api/private-scoped return 401 Unauthorized Valid token without any scope V GET /api/private return 200 OK (1241ms) V GET /api/private-scoped return 403 Insufficent scope (1163ms) Valid token with read:messages scope V GET /api/private return 200 OK (1156ms) V GET /api/private-scoped return 200 OK (1133ms) Valid token with write:messages scope V GET /api/private return 200 OK (1129ms) V GET /api/private-scoped return 403 Insufficent scope (1200ms) Valid token with read:messages and write:messages scopes V GET /api/private return 200 OK (1155ms) V GET /api/private-scoped return 200 OK (1163ms) 19 passing (20s) 2 failing 1) Request with authorization header field Token with invalid signature GET /api/private return 401 Unauthorized: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 401 but got 400 at test\test.js:167:25 at Test.Request.callback (node_modules\superagent\lib\node\index.js:797:3) at IncomingMessage. (node_modules\superagent\lib\node\index.js: 990:12) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:152:19) 2) Request with authorization header field Token with invalid signature GET /api/private-scoped return 401 Unauthorized: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 401 but got 400 at test\test.js:177:25 at Test.Request.callback (node_modules\superagent\lib\node\index.js:797:3) at IncomingMessage. (node_modules\superagent\lib\node\index.js: 990:12) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:152:19) npm ERR! Test failed. See above for more details.