Commit a4d27083 by Torkel Ödegaard

fix(tests): fixed unit test broken in recent dynamic dashboard fix

parent a9cf7cd4
......@@ -24,7 +24,7 @@ export class DynamicDashboardSrv {
if (dashboard.templating.list.length === 0) { return; }
this.dashboard = dashboard;
this.iteration = new Date().getTime();
this.iteration = (this.iteration || new Date().getTime()) + 1;
var cleanUpOnly = options.cleanUpOnly;
......
define([
'app/features/dashboard/dynamicDashboardSrv',
'app/features/dashboard/dynamic_dashboard_srv',
'app/features/dashboard/dashboardSrv'
], function() {
'use strict';
......@@ -12,6 +12,7 @@ define([
ctx.setup = function (setupFunc) {
beforeEach(module('grafana.services'));
beforeEach(module('grafana.core'));
beforeEach(module(function($provide) {
$provide.value('contextSrv', {
user: { timezone: 'utc'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment