fix failed tests for dashboard view state

pull/11282/head
Alexander Zobnin 7 years ago
parent 0e5b790b54
commit 205714759e
  1. 5
      public/app/features/dashboard/specs/viewstate_srv_specs.ts

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

Loading…
Cancel
Save