فهرست منبع

Fix emit errors

Tobias Skarhed 7 سال پیش
والد
کامیت
766c23a1eb
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      public/app/plugins/panel/graph/specs/graph_ctrl.jest.ts

+ 3 - 0
public/app/plugins/panel/graph/specs/graph_ctrl.jest.ts

@@ -34,6 +34,9 @@ describe('GraphCtrl', () => {
 
 
   beforeEach(() => {
   beforeEach(() => {
     ctx.ctrl = new GraphCtrl(scope, injector, {});
     ctx.ctrl = new GraphCtrl(scope, injector, {});
+    ctx.ctrl.events = {
+      emit: () => {},
+    };
     ctx.ctrl.annotationsPromise = Promise.resolve({});
     ctx.ctrl.annotationsPromise = Promise.resolve({});
     ctx.ctrl.updateTimeRange();
     ctx.ctrl.updateTimeRange();
   });
   });