TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Mocking jQuery AJAX with AmplifyJS Request

15 pointsby elijahmanorover 12 years ago

2 comments

asoloveover 12 years ago
I assume everyone already knows about mockjax [1], a fantastic library for mocking out plain-old jquery ajax requests. It's a great way to develop and test Backbone apps against an API contract even before the API is up and running.<p>[1] <a href="https://github.com/appendto/jquery-mockjax" rel="nofollow">https://github.com/appendto/jquery-mockjax</a>
评论 #4607321 未加载
joshkaover 12 years ago
Somewhat related is that Elijah showed Aaron Powell this some time ago and he blogged about it at <a href="http://aaron-powell.com/javascript/stubbing-ajax-responses-with-tbd" rel="nofollow">http://aaron-powell.com/javascript/stubbing-ajax-responses-w...</a> but used a different mock objects generator. This technique has come in quite handy, so thanks for showing Aaron this Elijah.
评论 #4607326 未加载