mirror of
https://github.com/nasa/openmct.git
synced 2025-06-09 19:01:40 +00:00
[Telemetry] Move formatter spec
Move spec for formatting of telemetry values from the plot bundle to the telemetry bundle, to reflect its exposure as a reusable service exposed by that bundle. WTD-599.
This commit is contained in:
parent
1ed67629e6
commit
f63038a83f
@ -4,7 +4,6 @@
|
|||||||
"PlotController",
|
"PlotController",
|
||||||
"SubPlot",
|
"SubPlot",
|
||||||
"elements/PlotAxis",
|
"elements/PlotAxis",
|
||||||
"elements/PlotFormatter",
|
|
||||||
"elements/PlotPalette",
|
"elements/PlotPalette",
|
||||||
"elements/PlotPanZoomStack",
|
"elements/PlotPanZoomStack",
|
||||||
"elements/PlotPanZoomStackGroup",
|
"elements/PlotPanZoomStackGroup",
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
* MergeModelsSpec. Created by vwoeltje on 11/6/14.
|
* MergeModelsSpec. Created by vwoeltje on 11/6/14.
|
||||||
*/
|
*/
|
||||||
define(
|
define(
|
||||||
["../../src/elements/PlotFormatter"],
|
["../src/TelemetryFormatter"],
|
||||||
function (PlotFormatter) {
|
function (TelemetryFormatter) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
describe("The plot formatter", function () {
|
describe("The telemetry formatter", function () {
|
||||||
var formatter;
|
var formatter;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
formatter = new PlotFormatter();
|
formatter = new TelemetryFormatter();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("formats domains using YYYY-DDD style", function () {
|
it("formats domains using YYYY-DDD style", function () {
|
||||||
@ -22,7 +22,7 @@ define(
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("formats ranges as values", function () {
|
it("formats ranges as values", function () {
|
||||||
expect(formatter.formatRangeValue(10)).toEqual("10.0");
|
expect(formatter.formatRangeValue(10)).toEqual("10.000");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
@ -1,5 +1,6 @@
|
|||||||
[
|
[
|
||||||
"TelemetryAggregator",
|
"TelemetryAggregator",
|
||||||
"TelemetryCapability",
|
"TelemetryCapability",
|
||||||
"TelemetryController"
|
"TelemetryController",
|
||||||
|
"TelemetryFormatter"
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user