title: How to send Headers ('Authorization','Bearer token') in Mocha Test cases
body: <p>I am writing a test case to test my API . When I try to test for any open API, it is working fine. But When I try to send Authorization Token along with my API, it is not working. Here is the code:</p>
  
  <p>The way i am sending headers is:</p>
  
  <p><code>.set("Authorization", "Bearer " + token)</code></p>
  
  <p>Is it the correct way of sending?</p>
  
  <p>I have tried to send the Authorization token in Auth. But not able to get the same. But when I tried to consume same in Postman, it is working fine. </p>
  
  <pre class="lang-js prettyprint-override"><code>    it("Get some random Info", function(done) {
          chai
            .request(baseUrl)
            .get("/someRandomApi")
            .set("Authorization", "Bearer " + token)
            .end(function(err, res) {
              expect(res).to.have.status(200);
              done();
            });
        });
  </code></pre>