mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 09:58:52 +00:00
f7e3c9479b
Add empty test scripts for new scripts introduced to the platform/telemetry bundle in support of the autoflow tabular view, WTD-614.
26 lines
757 B
JavaScript
26 lines
757 B
JavaScript
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
|
|
|
define(
|
|
["../src/TelemetryFormatter"],
|
|
function (TelemetryFormatter) {
|
|
"use strict";
|
|
|
|
describe("The telemetry formatter", function () {
|
|
var formatter;
|
|
|
|
beforeEach(function () {
|
|
formatter = new TelemetryFormatter();
|
|
});
|
|
|
|
it("formats domains using YYYY-DDD style", function () {
|
|
expect(formatter.formatDomainValue(402513731000)).toEqual(
|
|
"1982-276 17:22:11"
|
|
);
|
|
});
|
|
|
|
it("formats ranges as values", function () {
|
|
expect(formatter.formatRangeValue(10)).toEqual("10.000");
|
|
});
|
|
});
|
|
}
|
|
); |