test passing

This commit is contained in:
Matias Alejo Garcia 2014-08-28 19:19:28 -03:00
commit 2c354525ea
5 changed files with 19 additions and 31 deletions

View file

@ -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;
});
});