mocha test passing on console

This commit is contained in:
Matias Alejo Garcia 2014-08-15 09:57:47 -04:00
commit eb9acb958f
7 changed files with 185 additions and 191 deletions

View file

@ -69,7 +69,11 @@ FakeStorage.prototype.getWalletIds = function() {
var split = ii.split('::');
if (split.length == 2) {
var walletId = split[0];
if (walletId !== 'nameFor' && typeof uniq[walletId] === 'undefined') {
if (!walletId || walletId === 'nameFor' || walletId ==='lock')
continue;
if (typeof uniq[walletId] === 'undefined') {
walletIds.push(walletId);
uniq[walletId] = 1;
}