lundi 26 septembre 2016

How to test a call to a REST service

I set up a server that provides several endpoints to clients, and I have a client that uses node-rest-client package to post data to the backend.

I would like to write some unit-testing for the client side, making sure the data is properly sent to the endpoint.

I've been thinking of setting a dummy server for the testing, but that doesn't feel right.

How can i acheive such tests?

Please let me know if there's any missing data.

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire