A sample unit testing example using Jasmine & Sinon. There is also an observer pattern to
facilitate Sinon.Spy callback tests.