Skip to content

Commit 6168380

Browse files
author
Pete Richards
committed
[Style] Update style to reflect new jshint config
Update style to match new jshint config nasa#671
1 parent 11cfb6e commit 6168380

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

platform/commonUI/edit/src/controllers/ElementsController.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919
* this source code distribution or the Licensing information page available
2020
* at runtime from the About dialog for additional information.
2121
*****************************************************************************/
22-
/*global define,Promise*/
2322

2423
define(
2524
[],
2625
function () {
27-
"use strict";
2826

2927
/**
3028
* The ElementsController prepares the elements view for display
@@ -55,4 +53,4 @@ define(
5553

5654
return ElementsController;
5755
}
58-
);
56+
);

platform/commonUI/edit/test/controllers/ElementsControllerSpec.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919
* this source code distribution or the Licensing information page available
2020
* at runtime from the About dialog for additional information.
2121
*****************************************************************************/
22-
/*global define,describe,it,expect,beforeEach,jasmine*/
22+
/*global describe,it,expect,beforeEach,jasmine*/
2323

2424
define(
2525
["../../src/controllers/ElementsController"],
2626
function (ElementsController) {
27-
"use strict";
2827

2928
describe("The Elements Pane controller", function () {
3029
var mockScope,
@@ -35,6 +34,12 @@ define(
3534
controller = new ElementsController(mockScope);
3635
});
3736

37+
function getModel (model) {
38+
return function() {
39+
return model;
40+
};
41+
}
42+
3843
it("filters objects in elements pool based on input text and" +
3944
" object name", function () {
4045
var objects = [
@@ -50,13 +55,8 @@ define(
5055
{
5156
getModel: getModel({name: "THIRD Element 1"})
5257
}
53-
5458
];
55-
function getModel (model) {
56-
return function() {
57-
return model;
58-
};
59-
}
59+
6060
mockScope.filterBy("third element");
6161
expect(objects.filter(mockScope.searchElements).length).toBe(2);
6262
mockScope.filterBy("element");
@@ -65,4 +65,4 @@ define(
6565

6666
});
6767
}
68-
);
68+
);

0 commit comments

Comments
 (0)