Wednesday, 3 May 2017

How can I Mock node-rest-client request?

I'm using node-rest-client for my project and I've come to the point where I want to start unit testing my classes that utilize node-rest-client. Is there any examples on how I can mock the Client in my tests? I am using Sinon in my unit testing.



via Praveen

No comments:

Post a Comment