mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 13:18:15 +00:00
[Build] Remove unused variables from specs
...to satisfy JSHint.
This commit is contained in:
@ -30,20 +30,11 @@ define(
|
||||
describe("Overlaid plot mode", function () {
|
||||
var mockDomainObject,
|
||||
mockSubPlotFactory,
|
||||
mockSubPlot,
|
||||
mockPrepared,
|
||||
testBuffers,
|
||||
testDrawingObjects,
|
||||
mode;
|
||||
|
||||
function mockElement(x, y, w, h) {
|
||||
return {
|
||||
getBoundingClientRect: function () {
|
||||
return { left: x, top: y, width: w, height: h };
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function createMockSubPlot() {
|
||||
var mockSubPlot = jasmine.createSpyObj(
|
||||
"subPlot",
|
||||
@ -127,7 +118,7 @@ define(
|
||||
mode.plotTelemetry(mockPrepared);
|
||||
|
||||
// Should have one sub-plot with three lines
|
||||
testDrawingObjects.forEach(function (testDrawingObject, i) {
|
||||
testDrawingObjects.forEach(function (testDrawingObject) {
|
||||
// Either empty list or undefined is fine;
|
||||
// just want to make sure there are no lines.
|
||||
expect(testDrawingObject.lines.length)
|
||||
@ -178,7 +169,7 @@ define(
|
||||
});
|
||||
|
||||
// Step back the same number of zoom changes
|
||||
mockSubPlotFactory.createSubPlot.calls.forEach(function (c) {
|
||||
mockSubPlotFactory.createSubPlot.calls.forEach(function () {
|
||||
// Should still be zoomed at start of each iteration
|
||||
expect(mode.isZoomed()).toBeTruthy();
|
||||
// Step back one of the zoom changes.
|
||||
|
Reference in New Issue
Block a user