diff options
author | Thomas <tmashuang@gmail.com> | 2018-01-31 05:26:37 +0800 |
---|---|---|
committer | Thomas <tmashuang@gmail.com> | 2018-01-31 05:26:37 +0800 |
commit | c2cef0f815efb5667bf9aabff125cc1a8822283c (patch) | |
tree | d2fa8be7f4b83cbad52bc0672296102046fb7972 /test/lib | |
parent | b991ac0422acd509d5fd4a4ab28c2e6c4004c62f (diff) | |
download | tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.gz tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.tar.zst tangerine-wallet-browser-c2cef0f815efb5667bf9aabff125cc1a8822283c.zip |
Set address to default with empty string, add test validation.
Diffstat (limited to 'test/lib')
-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..10c02a18c --- /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}) +}
\ No newline at end of file |