[Time Conductor] Update TelemetryHandler spec

This commit is contained in:
Victor Woeltjen 2015-11-03 15:27:08 -08:00
parent 5940f94644
commit df484c1800

View File

@ -85,10 +85,18 @@ define(
it("exposes subscription API", function () {
// Should still expose methods from the provided subscription
expect(handle.unsubscribe)
.toBe(mockSubscription.unsubscribe);
expect(handle.getTelemetryObjects)
.toBe(mockSubscription.getTelemetryObjects);
// (though these may have been wrapped)
expect(mockSubscription.getTelemetryObjects)
.not.toHaveBeenCalled();
handle.getTelemetryObjects();
expect(mockSubscription.getTelemetryObjects)
.toHaveBeenCalled();
expect(mockSubscription.unsubscribe)
.not.toHaveBeenCalled();
handle.unsubscribe();
expect(mockSubscription.unsubscribe)
.toHaveBeenCalled();
});
it("provides an interface for historical requests", function () {