Last active
June 26, 2016 19:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
) | |
} | |
Author
luqmaan
commented
Jun 25, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment