aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-05-16 14:25:21 +0800
committerGitHub <noreply@github.com>2017-05-16 14:25:20 +0800
commit9560de80a0576cfd775f247c51ebac6a709f4864 (patch)
treee7769d67e754bf3e630a31b87ee9abc06df6da21 /test/lib
parent687dfc87bdfbdbde58a247a6ae8ab49b2a324da8 (diff)
parente28e0acaa8fb690a7fe5ac45597837f20d2079e1 (diff)
downloadtangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.gz
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.bz2
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.lz
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.xz
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.tar.zst
tangerine-wallet-browser-9560de80a0576cfd775f247c51ebac6a709f4864.zip
Merge pull request #1430 from MetaMask/i1407-FixNonEditingTxForm
Add test around conf-tx view's gas editing.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/mock-store.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lib/mock-store.js b/test/lib/mock-store.js
new file mode 100644
index 000000000..4714c3485
--- /dev/null
+++ b/test/lib/mock-store.js
@@ -0,0 +1,18 @@
+const createStore = require('redux').createStore
+const applyMiddleware = require('redux').applyMiddleware
+const thunkMiddleware = require('redux-thunk')
+const createLogger = require('redux-logger')
+const rootReducer = function() {}
+
+module.exports = configureStore
+
+const loggerMiddleware = createLogger()
+
+const createStoreWithMiddleware = applyMiddleware(
+ thunkMiddleware,
+ loggerMiddleware
+)(createStore)
+
+function configureStore (initialState) {
+ return createStoreWithMiddleware(rootReducer, initialState)
+}