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

10 lines
346 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')
2016-06-25 01:13:27 +02:00
2017-05-04 23:35:10 +02:00
module.exports = function () {
const store = new ObservableStore(clone(firstTimeState))
2017-01-25 04:47:00 +01:00
return new ConfigManager({ store })
2017-05-04 23:35:10 +02:00
}