mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 19:36:41 +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
|
* 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*/
|
|
||||||
|
|
||||||
define(
|
define(
|
||||||
[],
|
[],
|
||||||
function () {
|
function () {
|
||||||
"use strict";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ElementsController prepares the elements view for display
|
* The ElementsController prepares the elements view for display
|
||||||
|
@ -19,12 +19,11 @@
|
|||||||
* 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,describe,it,expect,beforeEach,jasmine*/
|
/*global describe,it,expect,beforeEach,jasmine*/
|
||||||
|
|
||||||
define(
|
define(
|
||||||
["../../src/controllers/ElementsController"],
|
["../../src/controllers/ElementsController"],
|
||||||
function (ElementsController) {
|
function (ElementsController) {
|
||||||
"use strict";
|
|
||||||
|
|
||||||
describe("The Elements Pane controller", function () {
|
describe("The Elements Pane controller", function () {
|
||||||
var mockScope,
|
var mockScope,
|
||||||
@ -35,6 +34,12 @@ define(
|
|||||||
controller = new ElementsController(mockScope);
|
controller = new ElementsController(mockScope);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function getModel (model) {
|
||||||
|
return function() {
|
||||||
|
return model;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
it("filters objects in elements pool based on input text and" +
|
it("filters objects in elements pool based on input text and" +
|
||||||
" object name", function () {
|
" object name", function () {
|
||||||
var objects = [
|
var objects = [
|
||||||
@ -50,13 +55,8 @@ define(
|
|||||||
{
|
{
|
||||||
getModel: getModel({name: "THIRD Element 1"})
|
getModel: getModel({name: "THIRD Element 1"})
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
function getModel (model) {
|
|
||||||
return function() {
|
|
||||||
return model;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
mockScope.filterBy("third element");
|
mockScope.filterBy("third element");
|
||||||
expect(objects.filter(mockScope.searchElements).length).toBe(2);
|
expect(objects.filter(mockScope.searchElements).length).toBe(2);
|
||||||
mockScope.filterBy("element");
|
mockScope.filterBy("element");
|
||||||
|
Loading…
Reference in New Issue
Block a user