From aabeb7220306cc16a3cf88eb1d286466efb96601 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 23 Feb 2016 15:22:21 -0800 Subject: [PATCH] [Plots] #638 Fixed failing test --- platform/features/plot/src/PlotOptionsController.js | 3 --- platform/features/plot/test/PlotOptionsControllerSpec.js | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/features/plot/src/PlotOptionsController.js b/platform/features/plot/src/PlotOptionsController.js index 78706f9231..8be5579ebf 100644 --- a/platform/features/plot/src/PlotOptionsController.js +++ b/platform/features/plot/src/PlotOptionsController.js @@ -116,8 +116,6 @@ define( this.clearSeriesWatches(); - console.log("watches before: " + this.watches.length); - (self.$scope.children || []).forEach(function(child, index){ self.watches.push( self.$scope.$watchCollection( @@ -128,7 +126,6 @@ define( ) ); }); - console.log("watches after: " + self.watches.length); }; /** diff --git a/platform/features/plot/test/PlotOptionsControllerSpec.js b/platform/features/plot/test/PlotOptionsControllerSpec.js index 6b21771f79..cac42f72a7 100644 --- a/platform/features/plot/test/PlotOptionsControllerSpec.js +++ b/platform/features/plot/test/PlotOptionsControllerSpec.js @@ -94,6 +94,9 @@ define( ]); mockScope.domainObject = mockDomainObject; + function noop() {} + mockScope.$watchCollection.andReturn(noop); + plotOptionsController = new PlotOptionsController(mockScope); });