[Telemetry] Update plot specs

Update plot specs to reflect refactoring out of formatter
for telemetry values, WTD-599.
This commit is contained in:
Victor Woeltjen
2014-12-24 12:13:57 -08:00
parent f63038a83f
commit 78b636dafe
10 changed files with 184 additions and 36 deletions

View File

@ -10,6 +10,7 @@ define(
describe("The plot controller", function () {
var mockScope,
mockFormatter,
mockTelemetry, // mock telemetry controller
mockData,
mockDomainObject,
@ -22,6 +23,10 @@ define(
"$scope",
[ "$watch", "$on" ]
);
mockFormatter = jasmine.createSpyObj(
"formatter",
[ "formatDomainValue", "formatRangeValue" ]
);
mockTelemetry = jasmine.createSpyObj(
"telemetry",
[ "getResponse", "getMetadata" ]
@ -41,7 +46,7 @@ define(
mockData.getDomainValue.andCallFake(echo);
mockData.getRangeValue.andCallFake(echo);
controller = new PlotController(mockScope);
controller = new PlotController(mockScope, mockFormatter);
});
it("listens for telemetry updates", function () {