Skip to content

Commit

Permalink
Fixed a test (web3#3425)
Browse files Browse the repository at this point in the history
  • Loading branch information
uluhonolulu committed Sep 5, 2021
1 parent b0dbe82 commit fd4dcdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/helpers/FakeXHR2.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ FakeXHR2.prototype.send = function (payload) {
}
};

FakeXHR2.prototype.addEventListener = function(eventType, callback) {
callback();
}

module.exports = {XMLHttpRequest: FakeXHR2};

0 comments on commit fd4dcdc

Please sign in to comment.