Skip to content

Instantly share code, notes, and snippets.

@AlphaGit
Last active August 29, 2015 14:00
Show Gist options
  • Save AlphaGit/11303932 to your computer and use it in GitHub Desktop.
Save AlphaGit/11303932 to your computer and use it in GitHub Desktop.
Get pending requests for fakehr
fakehr.requests.filter(function (r) {
return r.readyState != 4;
}).map(function (r) {
return r.method + ' ' + r.url
});
var getPending = function() {
return fakehr.requests.filter(function (r) {
return r.readyState != 4;
}).map(function (r) {
return r.method + ' ' + r.url
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment