Skip to content

Instantly share code, notes, and snippets.

@luqmaan
Last active June 26, 2016 19:52
Show Gist options
  • Save luqmaan/05e4671079622da21a8f to your computer and use it in GitHub Desktop.
Save luqmaan/05e4671079622da21a8f to your computer and use it in GitHub Desktop.
A copypesto to console.log all jasmine ajax requests. Makes it easier to debug why a request might have been missed. Karma
for (var i = 0; i < jasmine.Ajax.requests.count(); i++) {
var req = jasmine.Ajax.requests.at(i);
console.log(
req.method.toUpperCase(),
req.url,
req.status,
req.responseText ? req.responseText.length : null
)
}
@luqmaan
Copy link
Author

luqmaan commented Jun 25, 2016

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment