title: How to test an express rest api with header parameters using mocha and supertest?
body: <p>I have to test my rest api. Some routes require a value in the http requests headers for the user authentication token. </p>
  
  <p>I have separated my interesting bussiness logic in pure javascript code but I can't find a way to test the routes that require a token in the headers of the http request.</p>
  
  <p>Any other alternatives to mocha and/or supertest are welcome.</p>