refactor tx proposal events

This commit is contained in:
Matias Alejo Garcia 2014-12-10 18:18:28 -03:00
commit 6ce2667274
11 changed files with 201 additions and 248 deletions

View file

@ -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({