The repo contains a set of tests for a dummy API (http://dummy.restapiexample.com/) developed as an example of SuperTest usage with Mocha and Chai for API Testing.
Tests development have been done as a part of research around API testing tool discovery.
SuperTest - is a high-level abstraction for testing HTTP (https://github.com/visionmedia/supertest)
Mocha - JavaScript test framework (https://mochajs.org)
Chai - BDD / TDD assertion library (http://www.chaijs.com)
- Clone the repo
- Install all the dependencies
$ npm install
- Run the tests
$ npm test