Javascript API Endpoint Testing Library

I am looking for a simple API for testing an API for a holiday. I would like to be able to maintain the structure of mocha and / or jasmine, as well as bind API data, a verb, etc.

api( '/maker' ) .put( return { name: 'Sample 1', type: 'cheese', country: 'United States' } ) .failed() .succussed(). .has( return { assert(1, 1) } ); 
+4
source share
2 answers

supertest https://github.com/visionmedia/supertest does exactly what you are looking for.

+6
source

Frisby.js https://github.com/vlucas/frisby is another one. It is based on jasmine.

+6
source

Source: https://habr.com/ru/post/1480395/


All Articles