fix test
This commit is contained in:
parent
431a66eeb2
commit
49792d9485
1 changed files with 5 additions and 1 deletions
|
|
@ -43,6 +43,7 @@ describe("Unit: Controllers", function() {
|
|||
scope = $rootScope.$new();
|
||||
$rootScope.iden = sinon.stub();
|
||||
$rootScope.safeUnspentCount = 1;
|
||||
$rootScope.pendingTxCount = 0;
|
||||
|
||||
var w = {};
|
||||
w.isReady = sinon.stub().returns(true);
|
||||
|
|
@ -72,7 +73,10 @@ describe("Unit: Controllers", function() {
|
|||
w.sendTx = sinon.stub().yields(null);
|
||||
w.requiresMultipleSignatures = sinon.stub().returns(true);
|
||||
w.getTxProposals = sinon.stub().returns([1, 2, 3]);
|
||||
|
||||
w.getPendingTxProposals = sinon.stub().returns({
|
||||
txs : [{ isPending : true }],
|
||||
pendingForUs: 1
|
||||
});
|
||||
|
||||
$rootScope.wallet = w;
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue