diff --git a/test/Identity.js b/test/Identity.js index d19d4788a..0fb900f29 100644 --- a/test/Identity.js +++ b/test/Identity.js @@ -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; }); }); });