Skip to content

Instantly share code, notes, and snippets.

@jackvial
Created July 24, 2014 11:46
Show Gist options
  • Save jackvial/f3f050638a0caa33702a to your computer and use it in GitHub Desktop.
Save jackvial/f3f050638a0caa33702a to your computer and use it in GitHub Desktop.
Testing Jquery Plugins with jasmine

To spy a Jquery method:

var spy = spyOn($.fn, 'methodName');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment