test passing
This commit is contained in:
parent
e0b04401c9
commit
2c354525ea
5 changed files with 19 additions and 31 deletions
|
|
@ -530,15 +530,6 @@ describe('Wallet model', function() {
|
|||
w._onConnect(newId);
|
||||
});
|
||||
|
||||
it('handle disconnections', function(done) {
|
||||
var w = createW();
|
||||
w.on('disconnect', function(id) {
|
||||
id.should.equal(newId);
|
||||
done();
|
||||
});
|
||||
w._onDisconnect(newId);
|
||||
});
|
||||
|
||||
it('should register new copayers correctly', function() {
|
||||
var w = createW();
|
||||
var r = w.getRegisteredCopayerIds();
|
||||
|
|
@ -1429,11 +1420,4 @@ describe('Wallet model', function() {
|
|||
should.exist(n.networkNonce);
|
||||
});
|
||||
|
||||
it('#disconnect', function() {
|
||||
var w = cachedCreateW();
|
||||
var spy1 = sinon.spy(w, 'send');
|
||||
w.disconnect();
|
||||
spy1.calledOnce.should.be.true;
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue