Skip to content
Advertisement

Tag: request

How to decode nock recorded response

How to ad-hoc decode/uncompress the output produced by the nock recorder so we can see the response as text? I guess we do not understand if the response is gzipped and/or encoded The object works find when we load it into nock, and our tests are behaving as we expect. To see what the API produced, we are having to

JavaScript: Detect AJAX requests

Is there any way to detect global AJAX calls (particularly responses) on a web page with generic JavaScript (not with frameworks)? I’ve already reviewed the question “JavaScript detect an AJAX event”, here on StackOverflow, and tried patching in the accepted answer’s code into my application but it didn’t work. I’ve never done anything with AJAX before either so, I don’t

Advertisement