mirror of
https://github.com/nasa/openmct.git
synced 2025-06-04 08:30:48 +00:00
[Performance] Update mct-chart spec
This commit is contained in:
parent
3e7bc2f37f
commit
49e51d0a62
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user