diff options
author | Dan <danjm.com@gmail.com> | 2018-02-08 04:02:47 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-02-08 04:02:47 +0800 |
commit | d8896a8c316e9287ab68fdfa3fa9a7ed157f3245 (patch) | |
tree | 6a30f73fa59331e230caa0977373e983424c5081 /test/lib/shallow-with-store.js | |
parent | a9ecf9c6fcbffb2b1984058fa6c6eef3c968b9c4 (diff) | |
parent | dc24a6e8c26ec0110b8ecdbb3881419abe7098fe (diff) | |
download | tangerine-wallet-browser-d8896a8c316e9287ab68fdfa3fa9a7ed157f3245.tar.gz tangerine-wallet-browser-d8896a8c316e9287ab68fdfa3fa9a7ed157f3245.tar.zst tangerine-wallet-browser-d8896a8c316e9287ab68fdfa3fa9a7ed157f3245.zip |
Merge branch 'master' into uat
Diffstat (limited to 'test/lib/shallow-with-store.js')
-rw-r--r-- | test/lib/shallow-with-store.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/lib/shallow-with-store.js b/test/lib/shallow-with-store.js index 2a66adb17..9df10a3c5 100644 --- a/test/lib/shallow-with-store.js +++ b/test/lib/shallow-with-store.js @@ -1,16 +1,20 @@ const { shallow, mount } = require('enzyme') -exports.shallowWithStore = function shallowWithStore (component, store) { +module.exports = { + shallowWithStore, + mountWithStore, +} + +function shallowWithStore (component, store) { const context = { store, } - - return shallow(component, { context }) + return shallow(component, {context}) } -exports.mountWithStore = function mountWithStore (component, store) { +function mountWithStore (component, store) { const context = { store, } - return mount(component, { context }) + return mount(component, {context}) } |