TemplateSrv: expose limited templateSrv in grafana/runtime (#23339)

This commit is contained in:
Ryan McKinley
2020-04-05 21:44:49 -07:00
committed by GitHub
parent c89ad9b038
commit 7ab11027b0
21 changed files with 50 additions and 27 deletions

View File

@@ -12,6 +12,7 @@ jest.mock('app/core/store', () => {
});
jest.mock('@grafana/runtime', () => ({
...jest.requireActual('@grafana/runtime'),
getDataSourceSrv: () => ({
get: jest.fn(arg => getStub(arg)),
}),
@@ -22,7 +23,6 @@ jest.mock('@grafana/runtime', () => ({
newVariables: false,
},
},
DataSourceWithBackend: jest.fn(),
}));
describe('given dashboard with repeated panels', () => {