aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/shallow-with-store.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-08 23:50:04 +0800
committerGitHub <noreply@github.com>2018-02-08 23:50:04 +0800
commitf39222c9afd9dcab4c6234940eb9a9cb06dbc6f0 (patch)
tree55840c5f6da9512b613aa289f8ba555fe8f7c290 /test/lib/shallow-with-store.js
parente9c2c0eec19514468fd53087f974709d5df9c35b (diff)
parentb0db68a281168a94316823387b1670839990dd63 (diff)
downloadtangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.gz
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.bz2
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.lz
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.xz
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.tar.zst
tangerine-wallet-browser-f39222c9afd9dcab4c6234940eb9a9cb06dbc6f0.zip
Merge pull request #3206 from danjm/merge-uat-to-uatnext-feb072019
[NewUI] Merge uat to uatnext feb072019
Diffstat (limited to 'test/lib/shallow-with-store.js')
-rw-r--r--test/lib/shallow-with-store.js14
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})
}