mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: Fixed angular digest issues (#20906)
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user