all mocha tests fixes
This commit is contained in:
parent
e2a9c06d5f
commit
bfdfc68d83
2 changed files with 4 additions and 1 deletions
|
|
@ -650,6 +650,9 @@ Identity.prototype.joinWallet = function(opts, cb) {
|
||||||
err = 'walletFull';
|
err = 'walletFull';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (err)
|
||||||
|
return cb(err);
|
||||||
|
|
||||||
self.store({
|
self.store({
|
||||||
noWallets: true
|
noWallets: true
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ describe('Identity model', function() {
|
||||||
net.start.onFirstCall().callsArg(1);
|
net.start.onFirstCall().callsArg(1);
|
||||||
net.greet = sinon.stub();
|
net.greet = sinon.stub();
|
||||||
iden.createWallet = sinon.stub();
|
iden.createWallet = sinon.stub();
|
||||||
iden.createWallet.onFirstCall().yields();
|
iden.createWallet.onFirstCall().yields(null,null);
|
||||||
net.on.withArgs('data').yields('senderId', {
|
net.on.withArgs('data').yields('senderId', {
|
||||||
type: 'walletId',
|
type: 'walletId',
|
||||||
networkName: 'testnet',
|
networkName: 'testnet',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue