News for hackers. Stuff that matters.
Re:Mock your HTTP responses to test your REST API by city41 on Friday May 03, 2013 @12:51PM (#5651077)
We've rolled our own system inside Jasmine that mocks out XHR. It's generally in the form of:

    @ajax.whenQuerying('someendpoint').respondWith(someData)
And internal to that system we have some components that understand the overall shape of our data model so someData can be a very small, simple object with just the data the test cares about and the internals flesh out the rest.

There are no comments on this comment yet.