Search: Fixed angular digest issues (#20906)

This commit is contained in:
Torkel Ödegaard
2019-12-05 19:17:26 +01:00
committed by GitHub
parent 9d9f0e1b8c
commit a9bf8f80e9
3 changed files with 7 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ import {
} from 'app/core/components/manage_dashboards/manage_dashboards';
import { SearchSrv } from 'app/core/services/search_srv';
import { BackendSrv } from '../services/backend_srv';
import { NavModelSrv } from '../nav_model_srv';
import { ContextSrv } from '../services/context_srv';
const mockSection = (overides?: object): Section => {
@@ -593,8 +592,8 @@ function createCtrlWithStubs(searchResponse: any, tags?: any) {
};
return new ManageDashboardsCtrl(
{ $digest: jest.fn() } as any,
{} as BackendSrv,
{ getNav: () => {} } as NavModelSrv,
searchSrvStub as SearchSrv,
{ isEditor: true } as ContextSrv
);