rm storage.storage to storage.db
This commit is contained in:
parent
c4c7dc8eb1
commit
028a300012
7 changed files with 39 additions and 34 deletions
|
|
@ -21,14 +21,15 @@ FakeLocalStorage.prototype.setItem = function(k, v, cb) {
|
|||
this.ls[k] = v;
|
||||
return cb();
|
||||
};
|
||||
FakeLocalStorage.prototype.clear = function() {
|
||||
FakeLocalStorage.prototype.clear = function(cb) {
|
||||
this.ls = {};
|
||||
if (cb) return cb();
|
||||
}
|
||||
|
||||
module.exports = FakeLocalStorage;
|
||||
|
||||
module.exports.storageParams = {
|
||||
password: '123',
|
||||
storage: new FakeLocalStorage(),
|
||||
db: new FakeLocalStorage(),
|
||||
sessionStorage: new FakeLocalStorage(),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue