fix tests

This commit is contained in:
Ivan Socolsky 2014-10-31 19:11:16 -03:00
parent 7578758e17
commit 89562e9612
1 changed files with 3 additions and 2 deletions

View File

@ -121,14 +121,15 @@ describe('Identity model', function() {
});
describe('Identity.create()', function() {
it('should create', function() {
it('should create and store identity', function() {
var args = createIdentity();
args.blockchain.on = sinon.stub();
var old = Identity.prototype.createWallet;
sinon.stub(Identity.prototype, 'store').yields(null);
Identity.create(args.params, function(err, iden) {
should.not.exist(err);
should.exist(iden);
should.exist(iden.wallets);
Identity.prototype.store.calledOnce.should.be.true;
});
});
});