wallet model basic functions (WIP)
This commit is contained in:
parent
bd8271d0ec
commit
3bf02173c5
3 changed files with 138 additions and 25 deletions
14
test/FakeStorage.js
Normal file
14
test/FakeStorage.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
var FakeStorage = function(){
|
||||
this.storage = {};
|
||||
};
|
||||
|
||||
FakeStorage.prototype.read = function (id) {
|
||||
return this.storage[id];
|
||||
};
|
||||
|
||||
FakeStorage.prototype.save = function(id, payload) {
|
||||
this.storage[id] = payload;
|
||||
}
|
||||
|
||||
module.exports = require('soop')(FakeStorage);
|
||||
Loading…
Add table
Add a link
Reference in a new issue