fix failing unit test

This commit is contained in:
David Tsay 2020-03-04 12:00:42 -08:00
parent 34a149661c
commit 5b00246cc0

View File

@ -63,10 +63,11 @@ describe("The telemetry criterion", function () {
openmct.telemetry.getMetadata.and.returnValue(testTelemetryObject.telemetry.values);
openmct.time = jasmine.createSpyObj('timeAPI',
['timeSystem', 'bounds']
['timeSystem', 'bounds', 'getAllTimeSystems']
);
openmct.time.timeSystem.and.returnValue({key: 'system'});
openmct.time.bounds.and.returnValue({start: 0, end: 1});
openmct.time.getAllTimeSystems.and.returnValue([{key: 'system'}]);
testCriterionDefinition = {
id: 'test-criterion-id',