From 3bd556a406306ebe5f97c3f783d751110f0af8e0 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 21 Feb 2017 19:04:28 -0800 Subject: [PATCH] Fixed failing tests --- .../telemetry/test/TelemetryCapabilitySpec.js | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/platform/telemetry/test/TelemetryCapabilitySpec.js b/platform/telemetry/test/TelemetryCapabilitySpec.js index 1572bc3e44..0e435ac4d0 100644 --- a/platform/telemetry/test/TelemetryCapabilitySpec.js +++ b/platform/telemetry/test/TelemetryCapabilitySpec.js @@ -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,