From 89562e9612a853beb0271b0b7dd978cf591c825f Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Fri, 31 Oct 2014 19:11:16 -0300 Subject: [PATCH] fix tests --- test/Identity.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }); }); });