Tuesday, 2 May 2017

How to set cookie for localhost to test API in NodeJS?

I have a web application and I'm writing APIs on NodeJS. I want to test this APIs use mocha, chai and Node-rest-client, but I have a problem: "I don't know How to set cookie (Authorization of header) when I ran server on localhost)

  • First, run server on localhost:3000.
  • Next, run command api testing (Set cookie to server and run API testcases).


via Tam Vo

No comments:

Post a Comment