Parcourir la source

fix failed tests for dashboard view state

Alexander Zobnin il y a 7 ans
Parent
commit
205714759e
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      public/app/features/dashboard/specs/viewstate_srv_specs.ts

+ 4 - 1
public/app/features/dashboard/specs/viewstate_srv_specs.ts

@@ -30,7 +30,10 @@ describe('when updating view state', function() {
   beforeEach(
   beforeEach(
     angularMocks.inject(function(dashboardViewStateSrv, $location, $rootScope) {
     angularMocks.inject(function(dashboardViewStateSrv, $location, $rootScope) {
       $rootScope.onAppEvent = function() {};
       $rootScope.onAppEvent = function() {};
-      $rootScope.dashboard = { meta: {} };
+      $rootScope.dashboard = {
+        meta: {},
+        panels: [],
+      };
       viewState = dashboardViewStateSrv.create($rootScope);
       viewState = dashboardViewStateSrv.create($rootScope);
       location = $location;
       location = $location;
     })
     })