Fixes karma tests

This commit is contained in:
Gustavo Maximiliano Cortez 2014-07-16 19:00:34 -03:00
commit 91c7ab100d
4 changed files with 10 additions and 5 deletions

View file

@ -9,7 +9,7 @@ angular.module('copayApp.controllers').controller('BackupController',
backupService.download(w);
};
$scope.dowloadBackup = function() {
$scope.downloadBackup = function() {
var w = $rootScope.wallet;
backupService.download(w);
}

View file

@ -53,6 +53,11 @@ angular.module('copayApp.controllers').controller('SidebarController',
}
}
// ng-repeat defined number of times instead of repeating over array?
$scope.getNumber = function(num) {
return new Array(num);
}
$http.get('https://api.github.com/repos/bitpay/copay/tags').success(function(data) {
var toInt = function(s) {
return parseInt(s);