mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 21:27:52 +00:00
[Time Conductor] Update TelemetryHandler spec
This commit is contained in:
parent
5940f94644
commit
df484c1800
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user