all mocha tests fixes

This commit is contained in:
Matias Alejo Garcia 2014-10-29 08:59:06 -03:00
commit bfdfc68d83
2 changed files with 4 additions and 1 deletions

View file

@ -650,6 +650,9 @@ Identity.prototype.joinWallet = function(opts, cb) {
err = 'walletFull';
}
}
if (err)
return cb(err);
self.store({
noWallets: true
}, function(err) {

View file

@ -370,7 +370,7 @@ describe('Identity model', function() {
net.start.onFirstCall().callsArg(1);
net.greet = sinon.stub();
iden.createWallet = sinon.stub();
iden.createWallet.onFirstCall().yields();
iden.createWallet.onFirstCall().yields(null,null);
net.on.withArgs('data').yields('senderId', {
type: 'walletId',
networkName: 'testnet',