fakehr
fakehr copied to clipboard
Fixing empty match
Fixing problem that happens when concurrent management of xhr objects results in this behavior:
var xhr = new XMLHttpRequest();
fakehr.match(...); // this throws "toLowerCase of undefined" exception
xhr.open(...)
Also, updated npm versions to fulfill peer dependencies requirements and added a test.