Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mock abort() on xhr

  • Loading branch information...
commit 37cea51805fbebbe0f11c4eca7bcf2301b5c7673 1 parent 3710cb2
@drogus authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/smoke.ajax.js
View
4 lib/smoke.ajax.js
@@ -24,8 +24,10 @@ Smoke.xhrMock.prototype.open = function(type, url, async, username, password) {
this.status = mock.status;
};
+Smoke.xhrMock.prototype.abort = function() {};
+
Smoke.xhrMock.prototype.getResponseHeader = function() {};
Smoke.ActiveXObjectMock = function(arg) {
- new Smoke.xhtMock();
+ new Smoke.xhrMock();
};
Please sign in to comment.
Something went wrong with that request. Please try again.