aboutsummaryrefslogtreecommitdiffstats
path: root/mock-dev.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-07 02:20:37 +0800
committerAlexander Tseung <alextsg@users.noreply.github.com>2018-02-07 02:20:37 +0800
commita7bfea51e587f0edda6804f32f512f7ace9b5aed (patch)
tree75def952eb601c25484df571b75401fc67b6e357 /mock-dev.js
parentd452403322c517eee4fc6120de1ead68ed65ee6a (diff)
downloadtangerine-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.js15
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: {