From 49e51d0a62ce68231cea3915ac78e32959a716e9 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 3 Dec 2015 13:33:34 -0800 Subject: [PATCH] [Performance] Update mct-chart spec --- platform/features/plot/test/MCTChartSpec.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/platform/features/plot/test/MCTChartSpec.js b/platform/features/plot/test/MCTChartSpec.js index 9c60b034a6..2277b65975 100644 --- a/platform/features/plot/test/MCTChartSpec.js +++ b/platform/features/plot/test/MCTChartSpec.js @@ -45,8 +45,10 @@ define( jasmine.createSpy("$interval"); mockLog = jasmine.createSpyObj("$log", ["warn", "info", "debug"]); - mockScope = - jasmine.createSpyObj("$scope", ["$watchCollection", "$on"]); + mockScope = jasmine.createSpyObj( + "$scope", + ["$watchCollection", "$on", "$apply"] + ); mockElement = jasmine.createSpyObj("element", ["find", "html"]); mockInterval.cancel = jasmine.createSpy("cancelInterval"); @@ -152,7 +154,9 @@ define( // Should track canvas size in an interval expect(mockInterval).toHaveBeenCalledWith( jasmine.any(Function), - jasmine.any(Number) + jasmine.any(Number), + 0, + false ); // Verify pre-condition