check if there is not profile, to redir

This commit is contained in:
Matias Alejo Garcia 2014-10-11 08:43:51 -03:00
commit b03a3f1391
9 changed files with 52 additions and 28 deletions

View file

@ -128,7 +128,7 @@ describe('Profile model', function() {
p.addWallet('345', {}, function(err) {
_.pluck(p.listWallets(), 'id').sort().should.deep.equal(['123', '234', '345']);
p.deleteWallet('234', function(err) {
_.pluck(p.listWallets(), 'id').should.deep.equal(['123', '345']);
_.pluck(p.listWallets(), 'id').sort().should.deep.equal(['123', '345']);
done();
});
})