Tobias Skarhed 7 лет назад
Родитель
Сommit
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(() => {
     ctx.ctrl = new GraphCtrl(scope, injector, {});
+    ctx.ctrl.events = {
+      emit: () => {},
+    };
     ctx.ctrl.annotationsPromise = Promise.resolve({});
     ctx.ctrl.updateTimeRange();
   });