message: test: fix mock
diff: export default class Event {
  - private events: Set<(...args: any[]) => void> = new Set();
  -
  - public addEventListener(e: (...args: any[]) => void, scope: any) {
  - this.events.add(e);
  + public get numberOfListeners() {
  + return this.events.size;
  }
  - public removeEventListener(e: (...args: any[]) => void, scope: any) {
  + public addEventListener: (e: (...args: any[]) => void, scope: any) => void = jest.fn(e => {
  + this.events.add(e);
  + });
  + public removeEventListener: (e: (...args: any[]) => void, scope: any) => void = jest.fn(e => {
  this.events.delete(e);
  - }
  -
  - public raiseEvent(...args: any[]) {
  + });
  + public raiseEvent: (...args: any[]) => void = jest.fn(args => {
  this.events.forEach(e => {
  e(...args);
  });
  - }
  -
  - public get numberOfListeners() {
  - return this.events.size;
  - }
  + });
  + private events: Set<(...args: any[]) => void> = new Set();
  }
  