(key, val, cb)
| 148 | } |
| 149 | |
| 150 | put(key, val, cb) { |
| 151 | this.map.set(key, val); |
| 152 | mvelo.storage.set(this.storageKey, this.toObject()) |
| 153 | .then(() => cb(), err => cb(new MvError(err.message, 'STORAGE_ERROR'))); |
| 154 | } |
| 155 | |
| 156 | toObject() { |
| 157 | const all = {}; |
no test coverage detected