1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Add state selector to mock-dev server used by UI tests

This commit is contained in:
Dan Finlay 2016-08-11 19:45:47 -07:00
parent f3faec6509
commit a5cfa937ef

View File

@ -19,6 +19,7 @@ const Root = require('./ui/app/root')
const configureStore = require('./ui/app/store') const configureStore = require('./ui/app/store')
const actions = require('./ui/app/actions') const actions = require('./ui/app/actions')
const states = require('./development/states') const states = require('./development/states')
const Selector = require('./development/selector')
const MetamaskController = require('./app/scripts/metamask-controller') const MetamaskController = require('./app/scripts/metamask-controller')
const extension = require('./development/mockExtension') const extension = require('./development/mockExtension')
@ -139,6 +140,8 @@ render(
}, },
}, 'Reset State'), }, 'Reset State'),
h(Selector, { actions, selectedKey: selectedView, states, store }),
h('.mock-app-root', { h('.mock-app-root', {
style: { style: {
height: '500px', height: '500px',