mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-24 15:34:11 +08:00
Make scrutinizer happy
This commit is contained in:
parent
0d0f5bc7a0
commit
e83bcd3242
3 changed files with 6 additions and 4 deletions
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
})
|
||||
});
|
||||
};
|
||||
|
|
|
@ -5,6 +5,8 @@ describe('MenuCtrl', function() {
|
|||
});
|
||||
}));
|
||||
|
||||
beforeEach(module('LocalStorageModule'));
|
||||
|
||||
var $controller;
|
||||
var $scope;
|
||||
beforeEach(inject(function(_$controller_){
|
||||
|
|
Loading…
Reference in a new issue