mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix failed tests for dashboard view state
This commit is contained in:
parent
0e5b790b54
commit
205714759e
@ -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;
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user