Merge pull request #1791 from matiu/bug/use-all-funds

Fix #1789 - use all funds button
This commit is contained in:
Esteban Ordano 2014-11-12 22:17:50 -03:00
commit 4726570b7a
8 changed files with 43 additions and 72 deletions

View file

@ -1327,6 +1327,14 @@ describe('Wallet model', function() {
w.network.start.getCall(0).args[0].privkey.length.should.equal(64);
});
it('should call subscribeToAddresses', function() {
var w = cachedCreateW2();
w.blockchain.on = sinon.stub();
w.subscribeToAddresses = sinon.spy();
w.netStart();
w.subscribeToAddresses.calledOnce.should.equal(true);
});
});
describe('_getKeymap', function() {