aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/shallow-with-store.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-03 01:28:41 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-11-03 06:16:43 +0800
commitb7653e82079b60078b921776b169518d13c7e806 (patch)
tree24dee05fc50ed60a9f6e5b1d8cfa6e4883e7d79e /test/lib/shallow-with-store.js
parent86e88dc8135e9729a86c4b8ce3c00a9d4cad0a3e (diff)
downloadtangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.tar
tangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.tar.gz
tangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.tar.bz2
tangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.tar.lz
tangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.tar.xz
tangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.tar.zst
tangerine-wallet-browser-b7653e82079b60078b921776b169518d13c7e806.zip
Get current NewUI-flat tests working.
Diffstat (limited to 'test/lib/shallow-with-store.js')
-rw-r--r--test/lib/shallow-with-store.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lib/shallow-with-store.js b/test/lib/shallow-with-store.js
new file mode 100644
index 000000000..411aa0455
--- /dev/null
+++ b/test/lib/shallow-with-store.js
@@ -0,0 +1,11 @@
+const shallow = require('enzyme').shallow
+
+module.exports = shallowWithStore
+
+function shallowWithStore (component, store) {
+ const context = {
+ store,
+ }
+
+ return shallow(component, { context })
+};