mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(tests): fixed unit test broken in recent dynamic dashboard fix
This commit is contained in:
parent
a9cf7cd4f0
commit
a4d27083d0
@ -24,7 +24,7 @@ export class DynamicDashboardSrv {
|
|||||||
if (dashboard.templating.list.length === 0) { return; }
|
if (dashboard.templating.list.length === 0) { return; }
|
||||||
|
|
||||||
this.dashboard = dashboard;
|
this.dashboard = dashboard;
|
||||||
this.iteration = new Date().getTime();
|
this.iteration = (this.iteration || new Date().getTime()) + 1;
|
||||||
|
|
||||||
var cleanUpOnly = options.cleanUpOnly;
|
var cleanUpOnly = options.cleanUpOnly;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
define([
|
define([
|
||||||
'app/features/dashboard/dynamicDashboardSrv',
|
'app/features/dashboard/dynamic_dashboard_srv',
|
||||||
'app/features/dashboard/dashboardSrv'
|
'app/features/dashboard/dashboardSrv'
|
||||||
], function() {
|
], function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
@ -12,6 +12,7 @@ define([
|
|||||||
ctx.setup = function (setupFunc) {
|
ctx.setup = function (setupFunc) {
|
||||||
|
|
||||||
beforeEach(module('grafana.services'));
|
beforeEach(module('grafana.services'));
|
||||||
|
beforeEach(module('grafana.core'));
|
||||||
beforeEach(module(function($provide) {
|
beforeEach(module(function($provide) {
|
||||||
$provide.value('contextSrv', {
|
$provide.value('contextSrv', {
|
||||||
user: { timezone: 'utc'}
|
user: { timezone: 'utc'}
|
||||||
|
Loading…
Reference in New Issue
Block a user