fix tests

This commit is contained in:
Matias Alejo Garcia 2016-06-06 19:09:57 -03:00
commit b17517ede0
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
12 changed files with 25 additions and 16 deletions

View file

@ -385,8 +385,8 @@ angular.module('copayApp.services')
else $log.debug('Unsubscribed from push notifications service');
});
$log.debug('Deleting Wallet:', fc.credentials.walletName);
fc.removeAllListeners();
$log.debug('Deleting Wallet:', client.credentials.walletName);
client.removeAllListeners();
root.profile.deleteWallet(walletId);
@ -461,7 +461,7 @@ angular.module('copayApp.services')
if (!opts.isImport) return cb();
$rootScope.$emit('Local/BackupDone', walletId);
if (!walletClient.isComplete())
if (!client.isComplete())
return cb();
storageService.setCleanAndScanAddresses(walletId, cb);