add test to join!

This commit is contained in:
Matias Alejo Garcia 2016-06-15 13:07:02 -03:00
commit f2012ee5bb
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
4 changed files with 121 additions and 40 deletions

View file

@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('joinController',
}
};
this.setSeedSource = function(src) {
this.setSeedSource = function() {
self.seedSourceId = $scope.seedSource.id;
$timeout(function() {
@ -86,6 +86,8 @@ angular.module('copayApp.controllers').controller('joinController',
opts.passphrase = form.createPassphrase.$modelValue;
}
opts.walletPrivKey = $scope._walletPrivKey; // Only for testing
if (setSeed && !opts.mnemonic && !opts.extendedPrivateKey) {
@ -139,5 +141,5 @@ angular.module('copayApp.controllers').controller('joinController',
};
updateSeedSourceSelect();
self.setSeedSource('new');
self.setSeedSource();
});