fix failed tests for dashboard view state

This commit is contained in:
Alexander Zobnin 2018-03-16 21:45:31 +03:00
parent 0e5b790b54
commit 205714759e

View File

@ -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;
})