aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/shallow-with-store.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-11-26 08:37:12 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-11-26 08:37:12 +0800
commitcefe6cded6728ff95d951435430da311356c3b23 (patch)
treee37ae935d5a6741f97aeea18f6a128518c3645fb /test/lib/shallow-with-store.js
parent28409294c3cd70ddbc9a9f3467d402c89e110261 (diff)
downloadtangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.tar
tangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.tar.gz
tangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.tar.bz2
tangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.tar.lz
tangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.tar.xz
tangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.tar.zst
tangerine-wallet-browser-cefe6cded6728ff95d951435430da311356c3b23.zip
Update to Enzyme 3.2.0
Diffstat (limited to 'test/lib/shallow-with-store.js')
-rw-r--r--test/lib/shallow-with-store.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/test/lib/shallow-with-store.js b/test/lib/shallow-with-store.js
index 411aa0455..2a66adb17 100644
--- a/test/lib/shallow-with-store.js
+++ b/test/lib/shallow-with-store.js
@@ -1,11 +1,16 @@
-const shallow = require('enzyme').shallow
+const { shallow, mount } = require('enzyme')
-module.exports = shallowWithStore
-
-function shallowWithStore (component, store) {
+exports.shallowWithStore = function shallowWithStore (component, store) {
const context = {
store,
}
return shallow(component, { context })
-};
+}
+
+exports.mountWithStore = function mountWithStore (component, store) {
+ const context = {
+ store,
+ }
+ return mount(component, { context })
+}