Here’s how to combine window.fetch and sinon stubs to test API requests. This is the second of two parts in a miniseries on functional client-server testing. In the first, we used sinon.js’s fakeServer utility to test an XMLHttpRequest-based client. If you’re in a hurry, skip on over to the demo project on Github; everyone else, read on!_ If we designed a generic API for JavaScript client requests
