浏览代码

Figuring out why it doesn't initialize

Tobias Skarhed 7 年之前
父节点
当前提交
bb0af52d34
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      public/app/plugins/datasource/influxdb/specs/query_ctrl.jest.ts

+ 2 - 1
public/app/plugins/datasource/influxdb/specs/query_ctrl.jest.ts

@@ -16,8 +16,9 @@ describe('InfluxDBQueryCtrl', function() {
   };
 
   InfluxQueryCtrl.prototype.panelCtrl = {
+    target: { target: {} },
     panel: {
-      targets: [{}],
+      targets: [this.target],
     },
   };