mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 09:00:49 +00:00
[Style] Remove unused variables, excess whitespace
Clean up unused variables and excess whitespace to match style guide.
This commit is contained in:
parent
3e5d294a28
commit
8b7a94dcf8
@ -19,7 +19,7 @@
|
|||||||
* this source code distribution or the Licensing information page available
|
* this source code distribution or the Licensing information page available
|
||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
["../../src/controllers/TreeNodeController"],
|
["../../src/controllers/TreeNodeController"],
|
||||||
@ -29,8 +29,6 @@ define(
|
|||||||
describe("The tree node controller", function () {
|
describe("The tree node controller", function () {
|
||||||
var mockScope,
|
var mockScope,
|
||||||
mockTimeout,
|
mockTimeout,
|
||||||
mockAgentService,
|
|
||||||
mockNgModel,
|
|
||||||
mockDomainObject,
|
mockDomainObject,
|
||||||
controller;
|
controller;
|
||||||
|
|
||||||
@ -46,16 +44,12 @@ define(
|
|||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
mockScope = jasmine.createSpyObj("$scope", ["$watch", "$on", "$emit"]);
|
mockScope = jasmine.createSpyObj("$scope", ["$watch", "$on", "$emit"]);
|
||||||
mockTimeout = jasmine.createSpy("$timeout");
|
mockTimeout = jasmine.createSpy("$timeout");
|
||||||
mockAgentService = jasmine.createSpyObj("agentService", ["isMobile", "isPhone", "getOrientation"]);
|
|
||||||
mockDomainObject = jasmine.createSpyObj(
|
mockDomainObject = jasmine.createSpyObj(
|
||||||
"domainObject",
|
"domainObject",
|
||||||
[ "getId", "getCapability", "getModel", "useCapability" ]
|
[ "getId", "getCapability", "getModel", "useCapability" ]
|
||||||
);
|
);
|
||||||
|
|
||||||
mockAgentService.getOrientation.andReturn("portrait");
|
controller = new TreeNodeController(mockScope, mockTimeout);
|
||||||
mockAgentService.isPhone.andReturn(true);
|
|
||||||
|
|
||||||
controller = new TreeNodeController(mockScope, mockTimeout, mockAgentService);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("allows tracking of expansion state", function () {
|
it("allows tracking of expansion state", function () {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* this source code distribution or the Licensing information page available
|
* this source code distribution or the Licensing information page available
|
||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
['../../src/gestures/InfoButtonGesture'],
|
['../../src/gestures/InfoButtonGesture'],
|
||||||
@ -38,7 +38,6 @@ define(
|
|||||||
mockScope,
|
mockScope,
|
||||||
mockOff,
|
mockOff,
|
||||||
testMetadata,
|
testMetadata,
|
||||||
mockPromise,
|
|
||||||
mockHide,
|
mockHide,
|
||||||
gesture,
|
gesture,
|
||||||
fireGesture,
|
fireGesture,
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* this source code distribution or the Licensing information page available
|
* this source code distribution or the Licensing information page available
|
||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
['../../src/gestures/InfoGesture'],
|
['../../src/gestures/InfoGesture'],
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* this source code distribution or the Licensing information page available
|
* this source code distribution or the Licensing information page available
|
||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*global define,Promise,describe,it,expect,beforeEach,waitsFor,jasmine*/
|
/*global define,describe,it,expect,beforeEach,jasmine*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -49,18 +49,8 @@ define(
|
|||||||
mockDomainObject,
|
mockDomainObject,
|
||||||
mockEvent,
|
mockEvent,
|
||||||
mockActionContext,
|
mockActionContext,
|
||||||
mockNavigator,
|
|
||||||
mockStopPropagation,
|
|
||||||
action;
|
action;
|
||||||
|
|
||||||
function fireEvent(evt, value) {
|
|
||||||
mockElement.on.calls.forEach(function (call) {
|
|
||||||
if (call.args[0] === evt) {
|
|
||||||
call.args[1](value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
mockCompile = jasmine.createSpy("$compile");
|
mockCompile = jasmine.createSpy("$compile");
|
||||||
mockCompiledTemplate = jasmine.createSpy("template");
|
mockCompiledTemplate = jasmine.createSpy("template");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user