add setFromObj to FakeStorage - and fix publicKeyring capitalization
...to fix tests
This commit is contained in:
parent
9319c7f93f
commit
4681783231
3 changed files with 10 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue