Created
February 14, 2011 17:10
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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