Refactor: replace angular $q by native Promise.
This commit is contained in:
@@ -17,14 +17,13 @@ describe('ZabbixDatasource', () => {
|
||||
trendsFrom: '7d'
|
||||
}
|
||||
};
|
||||
ctx.$q = Q;
|
||||
ctx.templateSrv = {};
|
||||
ctx.alertSrv = {};
|
||||
ctx.zabbixAPIService = () => {};
|
||||
ctx.ZabbixCachingProxy = () => {};
|
||||
ctx.queryBuilder = () => {};
|
||||
|
||||
ctx.ds = new Datasource(ctx.instanceSettings, ctx.$q, ctx.templateSrv, ctx.alertSrv,
|
||||
ctx.ds = new Datasource(ctx.instanceSettings, ctx.templateSrv, ctx.alertSrv,
|
||||
ctx.zabbixAPIService, ctx.ZabbixCachingProxy, ctx.queryBuilder);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user