mirror of https://github.com/BTCPrivate/copay.git
add test
This commit is contained in:
parent
4c61c74706
commit
9ab27c7bdd
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue