ソースを参照

fixed build issues with last commit (spec file syntax error)

Torkel Ödegaard 11 年 前
コミット
69b9189220
1 ファイル変更6 行追加3 行削除
  1. 6 3
      src/test/specs/graphiteTargetCtrl-specs.js

+ 6 - 3
src/test/specs/graphiteTargetCtrl-specs.js

@@ -9,11 +9,13 @@ define([
 
 
     beforeEach(module('kibana.services'));
     beforeEach(module('kibana.services'));
     beforeEach(module(function($provide){
     beforeEach(module(function($provide){
-      $provide.value('dashboard', dashboardMock.create());
+      $provide.value('filterSrv',{});
     }));
     }));
 
 
-    beforeEach(inject(function(filterSrv) {
-      _filterSrv = filterSrv;
+    beforeEach(inject(function($controller, $rootScope) {
+      _targetCtrl = $controller({
+        $scope: $rootScope.$new()
+      });
     }));
     }));
 
 
     describe('init', function() {
     describe('init', function() {
@@ -22,4 +24,5 @@ define([
         _filterSrv.init();
         _filterSrv.init();
       });
       });
     });
     });
+  });
 });
 });