You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it returns null and the jasmine test fails because substring function is called on null. What should I do? Note: I can access the 'Location' header just fine if the ajax request is not mocked.
The text was updated successfully, but these errors were encountered:
amit1911
changed the title
How to set headers for mocked ajax requests?
How to set response headers for mocked ajax requests?
Jan 12, 2016
I am mocking an ajax request using jasmine-ajax as follows
I am trying to get the 'Location' header for the request object passed to the ajax success callback as follows:
but it returns null and the jasmine test fails because substring function is called on null. What should I do? Note: I can access the 'Location' header just fine if the ajax request is not mocked.
The text was updated successfully, but these errors were encountered: