diff options
author | Thomas <tmashuang@gmail.com> | 2018-03-10 07:01:48 +0800 |
---|---|---|
committer | Thomas <tmashuang@gmail.com> | 2018-03-10 07:01:48 +0800 |
commit | d5b1d6182ba73b28efd6862034038156c3e596c1 (patch) | |
tree | 8bebaedc1f9c95bb2d17b12be2fd16d50f75ad0f /test/lib/shallow-with-store.js | |
parent | 0db4ba1086f56422752dd4b9e3754a273d23a866 (diff) | |
parent | 634e5d8f55efc6c307a867556116a565eee21b58 (diff) | |
download | tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.gz tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.tar.zst tangerine-wallet-browser-d5b1d6182ba73b28efd6862034038156c3e596c1.zip |
Merge branch 'master' into selenium-e2e
Diffstat (limited to 'test/lib/shallow-with-store.js')
-rw-r--r-- | test/lib/shallow-with-store.js | 20 |
1 files changed, 20 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..9df10a3c5 --- /dev/null +++ b/test/lib/shallow-with-store.js @@ -0,0 +1,20 @@ +const { shallow, mount } = require('enzyme') + +module.exports = { + shallowWithStore, + mountWithStore, +} + +function shallowWithStore (component, store) { + const context = { + store, + } + return shallow(component, {context}) +} + +function mountWithStore (component, store) { + const context = { + store, + } + return mount(component, {context}) +} |