add test
This commit is contained in:
parent
4c61c74706
commit
9ab27c7bdd
1 changed files with 8 additions and 0 deletions
|
|
@ -1327,6 +1327,14 @@ describe('Wallet model', function() {
|
||||||
w.network.start.getCall(0).args[0].privkey.length.should.equal(64);
|
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() {
|
describe('_getKeymap', function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue