fix test on node
This commit is contained in:
parent
0780879205
commit
861fb94f66
5 changed files with 24 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue