[Telemetry] Fix failing spec

Update specs to provide suitable mocks after changes to
TelemetryCapability which support autoflow tabular views,
WTD-614.
This commit is contained in:
Victor Woeltjen 2014-12-30 13:45:42 -08:00
parent 54c075dc88
commit cc5cfd95a7
2 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,7 @@ define(
telemetryService =
$injector.get("telemetryService");
} catch (e) {
// $injector should throw is telemetryService
// $injector should throw if telemetryService
// is unavailable or unsatisfiable.
$log.warn("Telemetry service unavailable");
telemetryService = null;

View File

@ -50,6 +50,9 @@ define(
}
});
mockTelemetryService.requestTelemetry
.andReturn(mockPromise({}));
// Bubble up...
mockReject.then.andReturn(mockReject);