mirror of
https://github.com/nasa/openmct.git
synced 2025-01-05 04:44:14 +00:00
33 lines
851 B
JavaScript
33 lines
851 B
JavaScript
|
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
||
|
|
||
|
/**
|
||
|
* MergeModelsSpec. Created by vwoeltje on 11/6/14.
|
||
|
*/
|
||
|
define(
|
||
|
["../src/PlotController"],
|
||
|
function (PlotController) {
|
||
|
"use strict";
|
||
|
|
||
|
describe("The plot controller", function () {
|
||
|
var mockScope,
|
||
|
controller;
|
||
|
|
||
|
beforeEach(function () {
|
||
|
mockScope = jasmine.createSpyObj(
|
||
|
"$scope",
|
||
|
[ "$watch", "$on" ]
|
||
|
);
|
||
|
controller = new PlotController(mockScope);
|
||
|
});
|
||
|
|
||
|
it("listens for telemetry updates", function () {
|
||
|
expect(mockScope.$on).toHaveBeenCalledWith(
|
||
|
"telemetryUpdate",
|
||
|
jasmine.any(Function)
|
||
|
);
|
||
|
});
|
||
|
|
||
|
|
||
|
});
|
||
|
}
|
||
|
);
|