Sinon Tutorials

Here's two ways to check whether a SinonJS stub was called with given arguments.
Here's how you can use `sinon.stub()` to stub out functions and assert that they were called.