Skip to content
New issue

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

TypeError: 'null' is not a function (evaluating 'jasmine.Ajax.requests.mostRecent().response #5

Open
cliren opened this issue Dec 10, 2014 · 3 comments

Comments

@cliren
Copy link

cliren commented Dec 10, 2014

//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
        })')
@pdeegan
Copy link
Member

pdeegan commented Feb 4, 2015

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!

@ghost
Copy link

ghost commented Jul 10, 2016

It looks like #9 and #10 to replace
response with respondWith works?

jasmine.Ajax.requests.mostRecent().respondWith({
    'status': 200,
    'responseText': data
});

Thanks.

@archirex
Copy link

archirex commented Sep 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants