[Style] Update style to reflect new jshint config

Update style to match new jshint config

https://github.com/nasa/openmct/issues/671
This commit is contained in:
Pete Richards 2016-05-09 10:30:24 -07:00
parent 11cfb6e1b8
commit 61683800cc
2 changed files with 10 additions and 12 deletions

View File

@ -19,12 +19,10 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/*global define,Promise*/
define(
[],
function () {
"use strict";
/**
* The ElementsController prepares the elements view for display
@ -55,4 +53,4 @@ define(
return ElementsController;
}
);
);

View File

@ -19,12 +19,11 @@
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
/*global define,describe,it,expect,beforeEach,jasmine*/
/*global describe,it,expect,beforeEach,jasmine*/
define(
["../../src/controllers/ElementsController"],
function (ElementsController) {
"use strict";
describe("The Elements Pane controller", function () {
var mockScope,
@ -35,6 +34,12 @@ define(
controller = new ElementsController(mockScope);
});
function getModel (model) {
return function() {
return model;
};
}
it("filters objects in elements pool based on input text and" +
" object name", function () {
var objects = [
@ -50,13 +55,8 @@ define(
{
getModel: getModel({name: "THIRD Element 1"})
}
];
function getModel (model) {
return function() {
return model;
};
}
mockScope.filterBy("third element");
expect(objects.filter(mockScope.searchElements).length).toBe(2);
mockScope.filterBy("element");
@ -65,4 +65,4 @@ define(
});
}
);
);