diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-02-07 02:20:37 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-02-07 02:20:37 +0800 |
commit | a7bfea51e587f0edda6804f32f512f7ace9b5aed (patch) | |
tree | 75def952eb601c25484df571b75401fc67b6e357 /mock-dev.js | |
parent | d452403322c517eee4fc6120de1ead68ed65ee6a (diff) | |
download | tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.gz tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.bz2 tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.lz tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.xz tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.tar.zst tangerine-wallet-browser-a7bfea51e587f0edda6804f32f512f7ace9b5aed.zip |
Integration tests for signature requests confirmations. (#3194)
Diffstat (limited to 'mock-dev.js')
-rw-r--r-- | mock-dev.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mock-dev.js b/mock-dev.js index 8827ddfdd..8b04352cf 100644 --- a/mock-dev.js +++ b/mock-dev.js @@ -20,6 +20,7 @@ const Root = require('./ui/app/root') const configureStore = require('./ui/app/store') const actions = require('./ui/app/actions') const states = require('./development/states') +const backGroundConnectionModifiers = require('./development/backGroundConnectionModifiers') const Selector = require('./development/selector') const MetamaskController = require('./app/scripts/metamask-controller') const firstTimeState = require('./app/scripts/first-time-state') @@ -85,6 +86,11 @@ actions.update = function(stateName) { } } +function modifyBackgroundConnection(backgroundConnectionModifier) { + const modifiedBackgroundConnection = Object.assign({}, controller.getApi(), backgroundConnectionModifier) + actions._setBackgroundConnection(modifiedBackgroundConnection) +} + var css = MetaMaskUiCss() injectCss(css) @@ -113,7 +119,14 @@ function startApp(){ }, }, 'Reset State'), - h(Selector, { actions, selectedKey: selectedView, states, store }), + h(Selector, { + actions, + selectedKey: selectedView, + states, + store, + modifyBackgroundConnection, + backGroundConnectionModifiers, + }), h('#app-content', { style: { |