We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//code
jasmine.Ajax.requests.mostRecent().response({ 'status': 200, 'responseText': data });
The following error is thrown with using latest (2.99.0) jasmine-ajax. Works fine with [email protected]
TypeError: 'null' is not a function (evaluating 'jasmine.Ajax.requests.mostRecent().response({ 'status': 200, 'responseText': data })')
The text was updated successfully, but these errors were encountered:
Hi, sorry about the delay, please see #9 and #10 to see if this recent merge fixed your issue. Otherwise, I'm happy to merge pull requests. Thanks!
Sorry, something went wrong.
It looks like #9 and #10 to replace response with respondWith works?
response
respondWith
jasmine.Ajax.requests.mostRecent().respondWith({ 'status': 200, 'responseText': data });
Thanks.
Can you update the documentation as well? It threw me off here: http://jasmine.github.io/2.0/ajax.html?spec=mocking%20ajax%20suite%20wide%20usage%20allows%20responses%20to%20be%20setup%20ahead%20of%20time
No branches or pull requests
//code
jasmine.Ajax.requests.mostRecent().response({
'status': 200,
'responseText': data
});
The following error is thrown with using latest (2.99.0) jasmine-ajax. Works fine with [email protected]
The text was updated successfully, but these errors were encountered: