mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-24 23:44:01 +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
|
* Controller of the passmanApp
|
||||||
*/
|
*/
|
||||||
angular.module('passmanApp')
|
angular.module('passmanApp')
|
||||||
.controller('MenuCtrl', ['$scope', 'VaultService', '$location', '$rootScope', 'TagService',
|
.controller('MenuCtrl', ['$scope', 'VaultService', '$location', '$rootScope', 'TagService','SettingsService',
|
||||||
function ($scope, VaultService, $location, $rootScope, TagService) {
|
function ($scope, VaultService, $location, $rootScope, TagService, SettingsService) {
|
||||||
$rootScope.logout = function () {
|
$rootScope.logout = function () {
|
||||||
SettingsService.setSetting('defaultVaultPass', false);
|
SettingsService.setSetting('defaultVaultPass', false);
|
||||||
$rootScope.$broadcast('logout');
|
$rootScope.$broadcast('logout');
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
var isTravis = (process.env.TRAVIS_BUILD_NUMBER) ? true : false;
|
var isTravis = (process.env.TRAVIS_BUILD_NUMBER) ? true : false;
|
||||||
var browsers = ['Firefox'];
|
var browsers = ['Firefox'];
|
||||||
if(!isTravis){
|
if(!isTravis){
|
||||||
browsers = ['Chrome']
|
browsers = ['Chrome'];
|
||||||
}
|
}
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
config.set({
|
config.set({
|
||||||
|
@ -74,5 +74,5 @@ module.exports = function (config) {
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
// if true, Karma captures browsers, runs the tests and exits
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
singleRun: true
|
singleRun: true
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,8 @@ describe('MenuCtrl', function() {
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
beforeEach(module('LocalStorageModule'));
|
||||||
|
|
||||||
var $controller;
|
var $controller;
|
||||||
var $scope;
|
var $scope;
|
||||||
beforeEach(inject(function(_$controller_){
|
beforeEach(inject(function(_$controller_){
|
||||||
|
|
Loading…
Reference in a new issue