concept whose quantity in category javascript
appears as: whose qutity

This is an excerpt from Manning's book Testing JavaScript Applications.
To mock third-party APIs you can use nock. It will enable you to specify an endpoint’s response rather than having to mock an HTTP library. Becausenockcan work with whichever request library you are using, it will make tests more decoupled, and easier to read, write, and update.