[Plots] #638 Fixed failing test
This commit is contained in:
@@ -116,8 +116,6 @@ define(
|
|||||||
|
|
||||||
this.clearSeriesWatches();
|
this.clearSeriesWatches();
|
||||||
|
|
||||||
console.log("watches before: " + this.watches.length);
|
|
||||||
|
|
||||||
(self.$scope.children || []).forEach(function(child, index){
|
(self.$scope.children || []).forEach(function(child, index){
|
||||||
self.watches.push(
|
self.watches.push(
|
||||||
self.$scope.$watchCollection(
|
self.$scope.$watchCollection(
|
||||||
@@ -128,7 +126,6 @@ define(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
console.log("watches after: " + self.watches.length);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -94,6 +94,9 @@ define(
|
|||||||
]);
|
]);
|
||||||
mockScope.domainObject = mockDomainObject;
|
mockScope.domainObject = mockDomainObject;
|
||||||
|
|
||||||
|
function noop() {}
|
||||||
|
mockScope.$watchCollection.andReturn(noop);
|
||||||
|
|
||||||
plotOptionsController = new PlotOptionsController(mockScope);
|
plotOptionsController = new PlotOptionsController(mockScope);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user