diff options
obs-store - use published module
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/mock-config-manager.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/lib/mock-config-manager.js b/test/lib/mock-config-manager.js index c62d91da9..72be86ed1 100644 --- a/test/lib/mock-config-manager.js +++ b/test/lib/mock-config-manager.js @@ -1,11 +1,10 @@ +const ObservableStore = require('obs-store') +const clone = require('clone') const ConfigManager = require('../../app/scripts/lib/config-manager') -const LocalStorageStore = require('../../app/scripts/lib/observable/local-storage') const firstTimeState = require('../../app/scripts/first-time-state') const STORAGE_KEY = 'metamask-config' module.exports = function() { - let dataStore = new LocalStorageStore({ storageKey: STORAGE_KEY }) - // initial state for first time users - if (!dataStore.get()) dataStore.put(firstTimeState) - return new ConfigManager({ store: dataStore }) + let store = new ObservableStore(clone(firstTimeState)) + return new ConfigManager({ store }) }
\ No newline at end of file |