Merge pull request #1946 from isocolsky/prevent_multijoin

returning error when allet already exists in profile
This commit is contained in:
Matias Alejo Garcia 2014-12-04 14:47:11 -03:00
commit db429a3dc5
4 changed files with 16 additions and 2 deletions

View file

@ -77,9 +77,10 @@ describe('Identity model', function() {
return params;
}
var wid = 0;
function getNewWallet(args) {
var w = sinon.stub();
w.getId = sinon.stub().returns('wid');
w.getId = sinon.stub().returns('wid' + (++wid));
w.getStorageKey = sinon.stub().returns('wkey');
w.toObj = sinon.stub().returns({
obj: 1