diff options
author | Dan <danjm.com@gmail.com> | 2017-11-03 01:28:41 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-11-03 06:16:43 +0800 |
commit | b7653e82079b60078b921776b169518d13c7e806 (patch) | |
tree | 24dee05fc50ed60a9f6e5b1d8cfa6e4883e7d79e /test/lib | |
parent | 86e88dc8135e9729a86c4b8ce3c00a9d4cad0a3e (diff) | |
download | tangerine-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')
-rw-r--r-- | test/lib/shallow-with-store.js | 11 |
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 }) +}; |