add setFromObj to FakeStorage - and fix publicKeyring capitalization

...to fix tests
This commit is contained in:
Ryan X. Charles 2014-04-17 18:55:17 -03:00
commit 4681783231
3 changed files with 10 additions and 2 deletions

View file

@ -27,4 +27,10 @@ FakeStorage.prototype.getWalletIds = function() {
return [];
};
FakeStorage.prototype.setFromObj = function(walletId, obj) {
for (var i in obj) {
this.storage[walletId + '-' + i] = obj[i];
};
};
module.exports = require('soop')(FakeStorage);