Best Practices for Spies, Stubs and Mocks in Sinon.js
Introduction Testing code with Ajax, networking, timeouts, databases, or other dependencies can be difficult. For example, if you use Ajax or networking, you need to have a server, which responds to your requests. With databases, you need to have a testing database set up with data for your tests. All of this means that writing […]