fix tests
This commit is contained in:
parent
fc78ae27d2
commit
bb9fbfa1e7
2 changed files with 10 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ angular.module('copayApp.controllers').controller('MoreController',
|
||||||
|
|
||||||
$scope.hideAdv=true;
|
$scope.hideAdv=true;
|
||||||
$scope.hidePriv=true;
|
$scope.hidePriv=true;
|
||||||
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
|
if (w)
|
||||||
|
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
|
||||||
|
|
||||||
$scope.downloadBackup = function() {
|
$scope.downloadBackup = function() {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,12 @@ if (is_browser) {
|
||||||
}
|
}
|
||||||
var Wallet = copay.Wallet;
|
var Wallet = copay.Wallet;
|
||||||
|
|
||||||
|
var FakePrivateKey = function () {
|
||||||
|
};
|
||||||
|
|
||||||
|
FakePrivateKey.prototype.toObj = function() {
|
||||||
|
return extendedPublicKeyString = 'privHex';
|
||||||
|
};
|
||||||
|
|
||||||
var FakeWallet = function() {
|
var FakeWallet = function() {
|
||||||
this.id = 'testID';
|
this.id = 'testID';
|
||||||
|
|
@ -30,6 +36,8 @@ var FakeWallet = function() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.privateKey = new FakePrivateKey();
|
||||||
};
|
};
|
||||||
|
|
||||||
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {
|
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue