From 61683800cc2b05a2edc7879b336fba44c25a48ce Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Mon, 9 May 2016 10:30:24 -0700 Subject: [PATCH] [Style] Update style to reflect new jshint config Update style to match new jshint config https://github.com/nasa/openmct/issues/671 --- .../edit/src/controllers/ElementsController.js | 4 +--- .../test/controllers/ElementsControllerSpec.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/platform/commonUI/edit/src/controllers/ElementsController.js b/platform/commonUI/edit/src/controllers/ElementsController.js index 5c5a2ed8a4..180b60dddc 100644 --- a/platform/commonUI/edit/src/controllers/ElementsController.js +++ b/platform/commonUI/edit/src/controllers/ElementsController.js @@ -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; } -); \ No newline at end of file +); diff --git a/platform/commonUI/edit/test/controllers/ElementsControllerSpec.js b/platform/commonUI/edit/test/controllers/ElementsControllerSpec.js index 0d708452e8..2837eb03df 100644 --- a/platform/commonUI/edit/test/controllers/ElementsControllerSpec.js +++ b/platform/commonUI/edit/test/controllers/ElementsControllerSpec.js @@ -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( }); } -); \ No newline at end of file +);