Wallet/test/FakeStorage.js

14 lines
264 B
JavaScript
Raw Normal View History

2014-03-26 17:55:02 -03:00
var FakeStorage = function(){
this.storage = {};
};
2014-04-08 00:54:38 -03:00
FakeStorage.prototype.set = function (id) {
2014-03-26 17:55:02 -03:00
return this.storage[id];
};
2014-04-08 00:54:38 -03:00
FakeStorage.prototype.get = function(id, payload) {
2014-03-26 17:55:02 -03:00
this.storage[id] = payload;
}
module.exports = require('soop')(FakeStorage);