fix tests and stringify for localstorage
This commit is contained in:
parent
f14d83cee1
commit
18aadede29
9 changed files with 75 additions and 76 deletions
|
|
@ -11,8 +11,8 @@ FakeStorage.prototype._setPassphrase = function(password) {
|
|||
this.storage.passphrase = password;
|
||||
};
|
||||
|
||||
FakeStorage.prototype.setGlobal = function(id, payload) {
|
||||
this.storage[id] = payload;
|
||||
FakeStorage.prototype.setGlobal = function(id, v) {
|
||||
this.storage[id] = typeof v === 'object' ? JSON.stringify(v) : v;
|
||||
};
|
||||
|
||||
FakeStorage.prototype.getGlobal = function(id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue