Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example Jasmine spec using jasmine-sinon to provide nicer matchers
it("should call the callback", function() {
var spy = sinon.spy();
doSomethingThenCallback(spy);
expect(spy).toHaveBeenCalled();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.