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 1) 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 V GET /api/private-scoped return 401 Unauthorized 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 V GET /api/private return 401 Unauthorized V GET /api/private-scoped return 401 Unauthorized Valid token without any scope 2) GET /api/private return 200 OK 3) GET /api/private-scoped return 403 Insufficent scope Valid token with read:messages scope 4) GET /api/private return 200 OK 5) GET /api/private-scoped return 200 OK Valid token with write:messages scope 6) GET /api/private return 200 OK 7) GET /api/private-scoped return 403 Insufficent scope Valid token with read:messages and write:messages scopes 8) GET /api/private return 200 OK 9) GET /api/private-scoped return 200 OK 12 passing (11s) 9 failing 1) Request without authorization header field GET /api/public return 200 OK: Uncaught AssertionError: expected 'text/html; charset=utf-8' to include 'ap plication/json' at test\test.js:37:29 at Test.Request.callback (node_modules\superagent\lib\node\index.js:785:12 ) 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 Valid token without any scope GET /api/private return 200 OK: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 200 but got 401 at test\test.js:200: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) 3) Request with authorization header field Valid token without any scope GET /api/private-scoped return 403 Insufficent scope: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 403 but got 401 at test\test.js:210: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) 4) Request with authorization header field Valid token with read:messages scope GET /api/private return 200 OK: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 200 but got 401 at test\test.js:231: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) 5) Request with authorization header field Valid token with read:messages scope GET /api/private-scoped return 200 OK: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 200 but got 401 at test\test.js:242: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) 6) Request with authorization header field Valid token with write:messages scope GET /api/private return 200 OK: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 200 but got 401 at test\test.js:263: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) 7) Request with authorization header field Valid token with write:messages scope GET /api/private-scoped return 403 Insufficent scope: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 403 but got 401 at test\test.js:273: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) 8) Request with authorization header field Valid token with read:messages and write:messages scopes GET /api/private return 200 OK: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 200 but got 401 at test\test.js:294: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) 9) Request with authorization header field Valid token with read:messages and write:messages scopes GET /api/private-scoped return 200 OK: Uncaught AssertionError: expected { Object (domain, _events, ...) } to have status code 200 but got 401 at test\test.js:305: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.