Instantly share code, notes, and snippets.
To spy a Jquery method:
var spy = spyOn($.fn, 'methodName');