From 6b4b7969fe22efd231f9d41a3ef90de9cadc14ff Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Wed, 6 Dec 2017 14:55:57 +0300 Subject: [PATCH] graph: fix karma tests --- public/app/plugins/panel/graph/specs/graph_specs.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/plugins/panel/graph/specs/graph_specs.ts b/public/app/plugins/panel/graph/specs/graph_specs.ts index 17445dd3002..7d310b078c0 100644 --- a/public/app/plugins/panel/graph/specs/graph_specs.ts +++ b/public/app/plugins/panel/graph/specs/graph_specs.ts @@ -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]; }));