mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
more tweaks
This commit is contained in:
parent
9590f485f1
commit
bcb80eb38f
@ -24,7 +24,6 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
|
||||
});
|
||||
|
||||
module.controller('GraphCtrl', function($scope, $rootScope, panelSrv, annotationsSrv, panelHelper, $q) {
|
||||
console.log('Graph: init: ' + $scope.panel.id);
|
||||
|
||||
$scope.panelMeta = new PanelMeta({
|
||||
panelName: 'Graph',
|
||||
|
@ -123,12 +123,17 @@ define([
|
||||
});
|
||||
|
||||
it('should mark second row as repeated', function() {
|
||||
expect(ctx.rows[0].linked).to.be(undefined);
|
||||
expect(ctx.rows[0].repeat).to.be('$servers');
|
||||
expect(ctx.rows[1].linked).to.be(true);
|
||||
});
|
||||
|
||||
it('should clear repeat field on repeated row', function() {
|
||||
expect(ctx.rows[1].repeat).to.be(null);
|
||||
});
|
||||
|
||||
it('should generate a repeartRowId based on repeat row index', function() {
|
||||
expect(ctx.rows[1].repeatRowId).to.be(1);
|
||||
});
|
||||
|
||||
it('should set scopedVars on row panels', function() {
|
||||
expect(ctx.rows[0].panels[0].scopedVars.servers.value).to.be('se1');
|
||||
expect(ctx.rows[1].panels[0].scopedVars.servers.value).to.be('se2');
|
||||
|
Loading…
Reference in New Issue
Block a user