copay/test/FakeStorage.js

15 lines
264 B
JavaScript
Raw Normal View History

2014-03-26 13:55:02 -07:00
var FakeStorage = function(){
this.storage = {};
};
2014-04-09 10:30:12 -07:00
FakeStorage.prototype.set = function (id, payload) {
this.storage[id] = payload;
2014-03-26 13:55:02 -07:00
};
2014-04-09 10:30:12 -07:00
FakeStorage.prototype.get = function(id) {
return this.storage[id];
2014-03-26 13:55:02 -07:00
}
module.exports = require('soop')(FakeStorage);