From b1ee0e44f3d244879f3a2d8ea4f181311191ea94 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Mon, 20 Jul 2015 13:42:21 -0700 Subject: [PATCH] Linting fixes, update unit test --- app/js/controllers/controller-outfit.js | 2 +- app/js/directives/directive-component-select.js | 2 +- test/fixtures/anaconda-test-detailed-export.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/js/controllers/controller-outfit.js b/app/js/controllers/controller-outfit.js index ec911f02..d7c0e865 100755 --- a/app/js/controllers/controller-outfit.js +++ b/app/js/controllers/controller-outfit.js @@ -373,7 +373,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', ' $scope.pdWarning = function(pd) { return pd.enginecapacity < ship.boostEnergy; - } + }; // Hide any open menu/slot/etc if the background is clicked $scope.$on('close', function() { diff --git a/app/js/directives/directive-component-select.js b/app/js/directives/directive-component-select.js index a40d6629..bd65f521 100755 --- a/app/js/directives/directive-component-select.js +++ b/app/js/directives/directive-component-select.js @@ -52,7 +52,7 @@ angular.module('app').directive('componentSelect', function() { groups: '=', // Groups of Component Options mass: '=', // Current ship unladen mass s: '=', // Current Slot - warning: '=', // Check warning function + warning: '=' // Check warning function }, link: function(scope, element) { var list = []; diff --git a/test/fixtures/anaconda-test-detailed-export.json b/test/fixtures/anaconda-test-detailed-export.json index 6b8ef67e..7e82c5a7 100644 --- a/test/fixtures/anaconda-test-detailed-export.json +++ b/test/fixtures/anaconda-test-detailed-export.json @@ -188,6 +188,7 @@ "hullCost": 141889932, "speed": 180, "boost": 240, + "boostEnergy": 29, "agility": 2, "baseShieldStrength": 350, "baseArmour": 945,