Alexander Zobnin 8 лет назад
Родитель
Сommit
6b4b7969fe
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      public/app/plugins/panel/graph/specs/graph_specs.ts

+ 2 - 0
public/app/plugins/panel/graph/specs/graph_specs.ts

@@ -87,6 +87,8 @@ describe('grafanaGraph', function() {
 
 
           $.plot = ctx.plotSpy = sinon.spy();
           $.plot = ctx.plotSpy = sinon.spy();
           ctrl.events.emit('render', ctx.data);
           ctrl.events.emit('render', ctx.data);
+          ctrl.events.emit('render-legend');
+          ctrl.events.emit('legend-rendering-complete');
           ctx.plotData = ctx.plotSpy.getCall(0).args[1];
           ctx.plotData = ctx.plotSpy.getCall(0).args[1];
           ctx.plotOptions = ctx.plotSpy.getCall(0).args[2];
           ctx.plotOptions = ctx.plotSpy.getCall(0).args[2];
         }));
         }));