Fix tests after merging alerting

This commit is contained in:
Alexander Zobnin
2017-03-28 19:44:31 +03:00
parent 9162210fc7
commit 59fa345927
15 changed files with 96 additions and 21 deletions

View File

@@ -20,9 +20,10 @@ describe('ZabbixDatasource', () => {
ctx.templateSrv = {};
ctx.alertSrv = {};
ctx.dashboardSrv = {};
ctx.zabbixAlertingSrv = {};
ctx.zabbix = () => {};
ctx.ds = new Datasource(ctx.instanceSettings, ctx.templateSrv, ctx.alertSrv, ctx.dashboardSrv, ctx.zabbix);
ctx.ds = new Datasource(ctx.instanceSettings, ctx.templateSrv, ctx.alertSrv, ctx.dashboardSrv, ctx.zabbixAlertingSrv, ctx.zabbix);
ctx.ds.alertQuery = () => Q.when([]);
});