fix test on node

This commit is contained in:
Matias Alejo Garcia 2014-04-09 14:30:12 -03:00
commit 861fb94f66
5 changed files with 24 additions and 28 deletions

View file

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