aboutsummaryrefslogblamecommitdiffstats
path: root/test/lib/mock-config-manager.js
blob: 3238d35010cc67b84744c88ca406a0471395c4e1 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                            
                                                                     
                                                                    
                                        
 

                                                          
                                     
 
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 () {
  const store = new ObservableStore(clone(firstTimeState))
  return new ConfigManager({ store })
}