1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/lib/mock-config-manager.js

10 lines
380 B
JavaScript
Raw Normal View History

2017-01-25 04:47:00 +01:00
const ObservableStore = require('obs-store')
const clone = require('clone')
2017-01-12 04:26:56 +01:00
const ConfigManager = require('../../app/scripts/lib/config-manager')
const firstTimeState = require('../../app/scripts/first-time-state')
const STORAGE_KEY = 'metamask-config'
2016-06-25 01:13:27 +02:00
module.exports = function() {
2017-01-25 04:47:00 +01:00
let store = new ObservableStore(clone(firstTimeState))
return new ConfigManager({ store })
}