Skip to content

Instantly share code, notes, and snippets.

@JoeChapman
Created November 22, 2012 11:54
Show Gist options
  • Save JoeChapman/4130766 to your computer and use it in GitHub Desktop.
Save JoeChapman/4130766 to your computer and use it in GitHub Desktop.
Jasmine spy
var spy = spyOn(obj, "method").andCallFake(function () {
return true;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment