[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:
Victor Woeltjen
2014-12-24 11:39:29 -08:00
parent 1ed67629e6
commit f63038a83f
3 changed files with 7 additions and 7 deletions

View File

@@ -1,29 +0,0 @@
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
/**
* MergeModelsSpec. Created by vwoeltje on 11/6/14.
*/
define(
["../../src/elements/PlotFormatter"],
function (PlotFormatter) {
"use strict";
describe("The plot formatter", function () {
var formatter;
beforeEach(function () {
formatter = new PlotFormatter();
});
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.0");
});
});
}
);

View File

@@ -4,7 +4,6 @@
"PlotController",
"SubPlot",
"elements/PlotAxis",
"elements/PlotFormatter",
"elements/PlotPalette",
"elements/PlotPanZoomStack",
"elements/PlotPanZoomStackGroup",