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
2017-01-24 19:47:00 -08:00

10 lines
380 B
JavaScript

const ObservableStore = require('obs-store')
const clone = require('clone')
const ConfigManager = require('../../app/scripts/lib/config-manager')
const firstTimeState = require('../../app/scripts/first-time-state')
const STORAGE_KEY = 'metamask-config'
module.exports = function() {
let store = new ObservableStore(clone(firstTimeState))
return new ConfigManager({ store })
}