refactor tx proposal events
This commit is contained in:
parent
4841c2dc05
commit
6ce2667274
11 changed files with 201 additions and 248 deletions
|
|
@ -48,7 +48,6 @@ describe("Unit: Controllers", function() {
|
|||
beforeEach(inject(function($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
$rootScope.safeUnspentCount = 1;
|
||||
$rootScope.pendingTxCount = 0;
|
||||
|
||||
//
|
||||
// TODO Use the REAL wallet, and stub only networking and DB components!
|
||||
|
|
@ -86,10 +85,9 @@ describe("Unit: Controllers", function() {
|
|||
w.requiresMultipleSignatures = sinon.stub().returns(true);
|
||||
w.getTxProposals = sinon.stub().returns([1, 2, 3]);
|
||||
w.getPendingTxProposals = sinon.stub().returns({
|
||||
txs: [{
|
||||
[{
|
||||
isPending: true
|
||||
}],
|
||||
pendingForUs: 1
|
||||
}]
|
||||
});
|
||||
w.getId = sinon.stub().returns(1234);
|
||||
w.on = sinon.stub().yields({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue