This commit is contained in:
Matias Alejo Garcia 2014-11-12 18:34:49 -03:00
parent 4c61c74706
commit 9ab27c7bdd
1 changed files with 8 additions and 0 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() {