Skip to content

Commit

Permalink
Don't mock addEventListener anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt committed Sep 17, 2021
1 parent c0fef31 commit ded77c1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/widget/test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ var WorkerThreads = require('worker_threads');
if(global.MessageChannel === undefined) {
global.MessageChannel = WorkerThreads.MessageChannel;
global.MessagePort = WorkerThreads.MessagePort;

global.MessagePort.prototype.addEventListener = function(name, callback) {
this.on('message', (data) => { callback({ data }) });
}
}

0 comments on commit ded77c1

Please sign in to comment.