Skip to content

Instantly share code, notes, and snippets.

@froots
Created February 14, 2011 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save froots/826182 to your computer and use it in GitHub Desktop.
Save froots/826182 to your computer and use it in GitHub Desktop.
An example Jasmine spec using a Sinon.JS spy without the jasmine-sinon plugin
it("should call the callback", function() {
var spy = sinon.spy();
doSomethingThenCallback(spy);
expect(spy.called).toBeTruthy();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment