avoiding Identity#bindWallet from tests

This commit is contained in:
Ivan Socolsky 2014-12-01 15:48:26 -03:00
commit 2840fd7813

View file

@ -215,7 +215,7 @@ describe('Identity model', function() {
getName: sinon.stub().returns('wallet' + i), getName: sinon.stub().returns('wallet' + i),
close: sinon.stub(), close: sinon.stub(),
}; };
iden.bindWallet(w); iden.wallets[w.getId()] = w;
}); });
iden.remove(null, function(err, res) { iden.remove(null, function(err, res) {
@ -225,7 +225,6 @@ describe('Identity model', function() {
storage.removeItem.getCall(3).args[0].should.equal(iden.getId()); storage.removeItem.getCall(3).args[0].should.equal(iden.getId());
done(); done();
}); });
}); });
}); });