From f849b8cd4b94635b3869e24980bd993183d8b9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 23 Mar 2014 16:04:21 +0100 Subject: [PATCH] fixed build issues with last commit (spec file syntax error) --- src/test/specs/graphiteTargetCtrl-specs.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/specs/graphiteTargetCtrl-specs.js b/src/test/specs/graphiteTargetCtrl-specs.js index 8516438a210..1265c933723 100644 --- a/src/test/specs/graphiteTargetCtrl-specs.js +++ b/src/test/specs/graphiteTargetCtrl-specs.js @@ -9,11 +9,13 @@ define([ beforeEach(module('kibana.services')); 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() { @@ -22,4 +24,5 @@ define([ _filterSrv.init(); }); }); + }); });