Merge pull request #1073 from matiu/bug/settings

fix settings page and add tests
This commit is contained in:
Yemel Jardi 2014-08-12 10:01:16 -03:00
commit 7d5e4b4a49
2 changed files with 94 additions and 79 deletions

View file

@ -1,7 +1,6 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('SettingsController', angular.module('copayApp.controllers').controller('SettingsController', function($scope, $rootScope, $window, $location, controllerUtils) {
function($scope, $rootScope, $window, $location) {
controllerUtils.redirIfLogged(); controllerUtils.redirIfLogged();
$scope.title = 'Settings'; $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() { describe('Join Controller', function() {
var what; var what;
beforeEach(inject(function($controller, $rootScope) { beforeEach(inject(function($controller, $rootScope) {