graph: fix karma tests

This commit is contained in:
Alexander Zobnin 2017-12-06 14:55:57 +03:00
parent 0c3e04ca60
commit 6b4b7969fe

View File

@ -87,6 +87,8 @@ describe('grafanaGraph', function() {
$.plot = ctx.plotSpy = sinon.spy();
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.plotOptions = ctx.plotSpy.getCall(0).args[2];
}));