mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TemplateSrv: expose limited templateSrv in grafana/runtime (#23339)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user