mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore/Tech debt: Remove (most) instances of $q angular service use (#20668)
* Chore/Tech debt: Remove (most) instances of $q angular service use Removes instances where the angular $q service is used and replaces it with native Promises.
This commit is contained in:
@@ -36,7 +36,7 @@ describe('CloudWatchDatasource', () => {
|
||||
} as any;
|
||||
|
||||
beforeEach(() => {
|
||||
ctx.ds = new CloudWatchDatasource(instanceSettings, {} as any, backendSrv, templateSrv, timeSrv);
|
||||
ctx.ds = new CloudWatchDatasource(instanceSettings, backendSrv, templateSrv, timeSrv);
|
||||
});
|
||||
|
||||
describe('When performing CloudWatch query', () => {
|
||||
@@ -313,7 +313,7 @@ describe('CloudWatchDatasource', () => {
|
||||
ctx.backendSrv.datasourceRequest = jest.fn(() => {
|
||||
return Promise.resolve({});
|
||||
});
|
||||
ctx.ds = new CloudWatchDatasource(instanceSettings, {} as any, backendSrv, templateSrv, timeSrv);
|
||||
ctx.ds = new CloudWatchDatasource(instanceSettings, backendSrv, templateSrv, timeSrv);
|
||||
ctx.ds.doMetricQueryRequest = jest.fn(() => []);
|
||||
});
|
||||
describe('and region param is left out', () => {
|
||||
|
||||
Reference in New Issue
Block a user