mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
[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:
parent
11cfb6e1b8
commit
61683800cc
@ -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;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -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(
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user