Wallet/test/FakeStorage.js
Matias Alejo Garcia 9ca83e35fc fix peers, pubkey WIP
2014-04-08 00:54:38 -03:00

14 lines
264 B
JavaScript

var FakeStorage = function(){
this.storage = {};
};
FakeStorage.prototype.set = function (id) {
return this.storage[id];
};
FakeStorage.prototype.get = function(id, payload) {
this.storage[id] = payload;
}
module.exports = require('soop')(FakeStorage);