mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph: toggle legend on/off from panel menu, #941, no keyboard shortcut yet, but could come
This commit is contained in:
@@ -27,11 +27,6 @@ define([
|
||||
ctx.scope.$digest();
|
||||
});
|
||||
|
||||
it('should build legend model', function() {
|
||||
expect(ctx.scope.legend[0].alias).to.be('test.cpu1');
|
||||
expect(ctx.scope.legend[1].alias).to.be('test.cpu2');
|
||||
});
|
||||
|
||||
it('should send time series to render', function() {
|
||||
var data = ctx.scope.render.getCall(0).args[0];
|
||||
expect(data.length).to.be(2);
|
||||
@@ -44,10 +39,6 @@ define([
|
||||
ctx.scope.$digest();
|
||||
});
|
||||
|
||||
it('should clear the legend data', function() {
|
||||
expect(ctx.scope.legend).to.eql([]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user