Browse Source

Figuring out why it doesn't initialize

Tobias Skarhed 7 years ago
parent
commit
bb0af52d34
1 changed files with 2 additions and 1 deletions
  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],
     },
   };