mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
Fixed failing tests
This commit is contained in:
parent
347fb6d882
commit
3bd556a406
@ -32,7 +32,9 @@ define(
|
||||
mockTelemetryService,
|
||||
mockReject,
|
||||
mockUnsubscribe,
|
||||
telemetry;
|
||||
telemetry,
|
||||
mockAPI,
|
||||
legacyTelemetryProvider;
|
||||
|
||||
|
||||
function mockPromise(value) {
|
||||
@ -79,7 +81,26 @@ define(
|
||||
// Bubble up...
|
||||
mockReject.then.andReturn(mockReject);
|
||||
|
||||
legacyTelemetryProvider = {};
|
||||
|
||||
mockAPI = {
|
||||
telemetry: {
|
||||
getMetadata: function () {
|
||||
return {
|
||||
valuesForHints: function () {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
},
|
||||
findRequestProvider: function () {
|
||||
return legacyTelemetryProvider;
|
||||
},
|
||||
legacyProvider: legacyTelemetryProvider
|
||||
}
|
||||
};
|
||||
|
||||
telemetry = new TelemetryCapability(
|
||||
mockAPI,
|
||||
mockInjector,
|
||||
mockQ,
|
||||
mockLog,
|
||||
|
Loading…
Reference in New Issue
Block a user