fix settings page and add tests

This commit is contained in:
Matias Alejo Garcia 2014-08-11 16:26:48 -04:00
parent fe53f1b87c
commit 1733f5491b
2 changed files with 94 additions and 79 deletions

View File

@ -1,7 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('SettingsController',
function($scope, $rootScope, $window, $location) {
angular.module('copayApp.controllers').controller('SettingsController', function($scope, $rootScope, $window, $location, controllerUtils) {
controllerUtils.redirIfLogged();
$scope.title = 'Settings';

View File

@ -376,6 +376,22 @@ describe("Unit: Controllers", function() {
});
});
describe('Settings Controller', function() {
var what;
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
what = $controller('SettingsController', {
$scope: scope,
});
}));
it('should exist', function() {
should.exist(what);
});
});
describe('Join Controller', function() {
var what;
beforeEach(inject(function($controller, $rootScope) {