aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
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/unit
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/unit')
-rw-r--r--test/unit/components/balance-component-test.js2
-rw-r--r--test/unit/components/pending-tx-test.js2
-rw-r--r--test/unit/responsive/components/dropdown-test.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/components/balance-component-test.js b/test/unit/components/balance-component-test.js
index a5fededc8..9b1e82acf 100644
--- a/test/unit/components/balance-component-test.js
+++ b/test/unit/components/balance-component-test.js
@@ -1,7 +1,7 @@
const assert = require('assert')
const h = require('react-hyperscript')
const { createMockStore } = require('redux-test-utils')
-const shallowWithStore = require('../../lib/shallow-with-store')
+const { shallowWithStore } = require('../../lib/shallow-with-store')
const BalanceComponent = require('../../../ui/app/components/balance-component')
const mockState = {
metamask: {
diff --git a/test/unit/components/pending-tx-test.js b/test/unit/components/pending-tx-test.js
index 97cac3216..c6c588e1c 100644
--- a/test/unit/components/pending-tx-test.js
+++ b/test/unit/components/pending-tx-test.js
@@ -4,7 +4,7 @@ const PendingTx = require('../../../ui/app/components/pending-tx')
const ethUtil = require('ethereumjs-util')
const { createMockStore } = require('redux-test-utils')
-const shallowWithStore = require('../../lib/shallow-with-store')
+const { shallowWithStore } = require('../../lib/shallow-with-store')
const identities = { abc: {}, def: {} }
const mockState = {
diff --git a/test/unit/responsive/components/dropdown-test.js b/test/unit/responsive/components/dropdown-test.js
index 932b6c752..982d8c6ec 100644
--- a/test/unit/responsive/components/dropdown-test.js
+++ b/test/unit/responsive/components/dropdown-test.js
@@ -6,7 +6,7 @@ const path = require('path');
const Dropdown = require(path.join(__dirname, '..', '..', '..', '..', 'ui', 'app', 'components', 'dropdowns', 'index.js')).Dropdown;
const { createMockStore } = require('redux-test-utils')
-const shallowWithStore = require('../../../lib/shallow-with-store')
+const { mountWithStore } = require('../../../lib/shallow-with-store')
const mockState = {
metamask: {
@@ -39,7 +39,7 @@ describe('Dropdown components', function () {
onClick = sinon.spy();
store = createMockStore(mockState)
- component = shallowWithStore(h(
+ component = mountWithStore(h(
Dropdown,
dropdownComponentProps,
[
@@ -57,7 +57,7 @@ describe('Dropdown components', function () {
}, 'Item 2'),
]
), store)
- dropdownComponent = component.dive()
+ dropdownComponent = component
})
it('can render two items', function () {