Skip to content

Commit 86da66d

Browse files
committed
Fix failing test
1 parent c5e53f0 commit 86da66d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plugins/condition/criterion/TelemetryCriterionSpec.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,19 @@ describe('The telemetry criterion', function () {
8383
});
8484
openmct.telemetry.getMetadata.and.returnValue(testTelemetryObject.telemetry);
8585

86-
openmct.time = jasmine.createSpyObj('timeAPI', ['timeSystem', 'bounds', 'getAllTimeSystems']);
86+
openmct.time = jasmine.createSpyObj('timeAPI', [
87+
'timeSystem',
88+
'bounds',
89+
'getAllTimeSystems',
90+
'getContextForView'
91+
]);
8792
openmct.time.timeSystem.and.returnValue({ key: 'system' });
8893
openmct.time.bounds.and.returnValue({
8994
start: 0,
9095
end: 1
9196
});
9297
openmct.time.getAllTimeSystems.and.returnValue([{ key: 'system' }]);
98+
openmct.time.getContextForView.and.returnValue({});
9399

94100
testCriterionDefinition = {
95101
id: 'test-criterion-id',

0 commit comments

Comments
 (0)