Make scrutinizer happy

This commit is contained in:
brantje 2016-10-17 19:29:05 +02:00
parent 0d0f5bc7a0
commit e83bcd3242
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F
3 changed files with 6 additions and 4 deletions

View file

@ -10,8 +10,8 @@
* Controller of the passmanApp
*/
angular.module('passmanApp')
.controller('MenuCtrl', ['$scope', 'VaultService', '$location', '$rootScope', 'TagService',
function ($scope, VaultService, $location, $rootScope, TagService) {
.controller('MenuCtrl', ['$scope', 'VaultService', '$location', '$rootScope', 'TagService','SettingsService',
function ($scope, VaultService, $location, $rootScope, TagService, SettingsService) {
$rootScope.logout = function () {
SettingsService.setSetting('defaultVaultPass', false);
$rootScope.$broadcast('logout');

View file

@ -3,7 +3,7 @@
var isTravis = (process.env.TRAVIS_BUILD_NUMBER) ? true : false;
var browsers = ['Firefox'];
if(!isTravis){
browsers = ['Chrome']
browsers = ['Chrome'];
}
module.exports = function (config) {
config.set({
@ -74,5 +74,5 @@ module.exports = function (config) {
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true
})
});
};

View file

@ -5,6 +5,8 @@ describe('MenuCtrl', function() {
});
}));
beforeEach(module('LocalStorageModule'));
var $controller;
var $scope;
beforeEach(inject(function(_$controller_){