[Performance] Update mct-chart spec

This commit is contained in:
Victor Woeltjen 2015-12-03 13:33:34 -08:00
parent 3e7bc2f37f
commit 49e51d0a62

View File

@ -45,8 +45,10 @@ define(
jasmine.createSpy("$interval"); jasmine.createSpy("$interval");
mockLog = mockLog =
jasmine.createSpyObj("$log", ["warn", "info", "debug"]); jasmine.createSpyObj("$log", ["warn", "info", "debug"]);
mockScope = mockScope = jasmine.createSpyObj(
jasmine.createSpyObj("$scope", ["$watchCollection", "$on"]); "$scope",
["$watchCollection", "$on", "$apply"]
);
mockElement = mockElement =
jasmine.createSpyObj("element", ["find", "html"]); jasmine.createSpyObj("element", ["find", "html"]);
mockInterval.cancel = jasmine.createSpy("cancelInterval"); mockInterval.cancel = jasmine.createSpy("cancelInterval");
@ -152,7 +154,9 @@ define(
// Should track canvas size in an interval // Should track canvas size in an interval
expect(mockInterval).toHaveBeenCalledWith( expect(mockInterval).toHaveBeenCalledWith(
jasmine.any(Function), jasmine.any(Function),
jasmine.any(Number) jasmine.any(Number),
0,
false
); );
// Verify pre-condition // Verify pre-condition