Skip to main content
jQuery Logo
This version is old school. Please find jQuery plugins on npm.

jQuery.ajaxMock - a tiny but yet powerful mocking plugin for jQuery 1.5+

by Martin Krause

jQuery.ajaxMock is a tiny yet powerful mocking plugin for jQuery 1.5+Just register a fake response (the mock object) . All subsequent $.ajax calls to registered urls will be incercepted, and their're callbacks will recieve the faked response. Keep in mind that no real XHRrequests will be made. Works like a charm with Jasmine (http://pivotal.github.com/jasmine/) the a behavior-driven development framework for testing JavaScript code.



Versions

Version
Date
Feb 27, 2013
1.2.0
Feb 21, 2013

GitHub Activity

16
Watchers
2
Forks

Maintainers

Licenses

Dependencies

  • jquery >=1.5