Wallet/test/FakeStorage.js
Matias Alejo Garcia 4f2499e13c fix test on node
2014-04-14 14:15:09 -03:00

14 lines
264 B
JavaScript

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