Closed nelsonic closed 4 years ago
Hapi v.19 has introduced more precise HTTP status codes 204 ("no content"): https://travis-ci.org/dwyl/hapi-auth-jwt2/jobs/647655247#L228
204
This is correct because the example server being tested is not returning any content. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
https://github.com/dwyl/hapi-auth-jwt2/blob/e48fd6812aac7a6cb3e7454fd8e622fedd5aa7f1/test/error_func.test.js#L7-L16
https://github.com/dwyl/hapi-auth-jwt2/blob/e48fd6812aac7a6cb3e7454fd8e622fedd5aa7f1/test/error_func_server.js#L10-L12
sendToken
update to test assertions included in #337
Hapi v.19 has introduced more precise HTTP status codes
204
("no content"): https://travis-ci.org/dwyl/hapi-auth-jwt2/jobs/647655247#L228This is correct because the example server being tested is not returning any content. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
https://github.com/dwyl/hapi-auth-jwt2/blob/e48fd6812aac7a6cb3e7454fd8e622fedd5aa7f1/test/error_func.test.js#L7-L16
https://github.com/dwyl/hapi-auth-jwt2/blob/e48fd6812aac7a6cb3e7454fd8e622fedd5aa7f1/test/error_func_server.js#L10-L12
Todo
sendToken
function to assert the more accurate HTTP status code.204
status code is returned.