[Imagery] Start off with empty timestamp
Show nothing in the timestamp area when there is no data yet available for image telemetry, WTD-1170.
This commit is contained in:
committed by
Pete Richards
parent
1e332da11b
commit
6aaa887e65
@@ -146,6 +146,19 @@ define(
|
||||
expect(controller.getImageUrl()).toEqual(testUrl);
|
||||
});
|
||||
|
||||
it("initially shows an empty string for date/time", function () {
|
||||
// Call the subscription listener while domain/range
|
||||
// values are still undefined
|
||||
mockHandle.getDomainValue.andReturn(undefined);
|
||||
mockHandle.getRangeValue.andReturn(undefined);
|
||||
mockTelemetryHandler.handle.mostRecentCall.args[1]();
|
||||
|
||||
// Should have empty strings for date/time/zone
|
||||
expect(controller.getTime()).toEqual("");
|
||||
expect(controller.getDate()).toEqual("");
|
||||
expect(controller.getZone()).toEqual("");
|
||||
expect(controller.getImageUrl()).toBeUndefined();
|
||||
});
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user