3 ms·
Last year I was the maintainer for jQuery-Mockjax (https://github.com/appendto/jquery-mockjax https://github.com/appendto/jquery-mockjax) which essentially mock
by yesimahuman 13y ago
Last year I was the maintainer for jQuery-Mockjax (https://github.com/appendto/jquery-mockjax https://github.com/appendto/jquery-mockjax) which essentially mocks jQuery's ajax calls. Makes it really easy to test these kinds of conditions on the client without needing to set up a server.
IIRC it also supports simulated response delays. You'll never know the difference!
- spellboots 13y agoYou should almost always, for almost every test suite, do this with a mocking library. That being said, I can think of some cases where this service would be really useful, such as one of tests on live systems for example.