Commit 20571475 by Alexander Zobnin

fix failed tests for dashboard view state

parent 0e5b790b
...@@ -30,7 +30,10 @@ describe('when updating view state', function() { ...@@ -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;
}) })
......
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