aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ui/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-10-30 08:25:05 +0800
committerkumavis <aaron@kumavis.me>2018-10-30 08:25:05 +0800
commitccbc2332829569b6bb416ced624ee3123c54b939 (patch)
treeb865d8b499a00921b4b38f2839dfc6c631aa4666 /test/unit/ui/app
parentf0602ca354a6d352c13a79a1cba884f54e5b9a83 (diff)
parent1bb4a8428c73c1f1137793b25900db159eec3fa8 (diff)
downloadtangerine-wallet-browser-ccbc2332829569b6bb416ced624ee3123c54b939.tar.gz
tangerine-wallet-browser-ccbc2332829569b6bb416ced624ee3123c54b939.tar.zst
tangerine-wallet-browser-ccbc2332829569b6bb416ced624ee3123c54b939.zip
Merge branch 'develop' of github.com:MetaMask/metamask-extension into sentry-enhancements2
Diffstat (limited to 'test/unit/ui/app')
-rw-r--r--test/unit/ui/app/actions.spec.js2
-rw-r--r--test/unit/ui/app/components/identicon.spec.js36
2 files changed, 1 insertions, 37 deletions
diff --git a/test/unit/ui/app/actions.spec.js b/test/unit/ui/app/actions.spec.js
index 748a58b32..df7d2ee8f 100644
--- a/test/unit/ui/app/actions.spec.js
+++ b/test/unit/ui/app/actions.spec.js
@@ -1133,7 +1133,7 @@ describe('Actions', () => {
{ type: 'DISPLAY_WARNING', value: 'Had a problem changing networks!' },
]
- setRpcTargetSpy.callsFake((newRpc, callback) => {
+ setRpcTargetSpy.callsFake((newRpc, chainId, ticker, nickname, callback) => {
callback(new Error('error'))
})
diff --git a/test/unit/ui/app/components/identicon.spec.js b/test/unit/ui/app/components/identicon.spec.js
deleted file mode 100644
index a2f8d8246..000000000
--- a/test/unit/ui/app/components/identicon.spec.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React from 'react'
-import assert from 'assert'
-import thunk from 'redux-thunk'
-import configureMockStore from 'redux-mock-store'
-import { mount } from 'enzyme'
-
-import IdenticonComponent from '../../../../../ui/app/components/identicon'
-
-describe('Identicon Component', () => {
-
- const state = {
- metamask: {
- useBlockie: false,
- },
- }
-
- const middlewares = [thunk]
- const mockStore = configureMockStore(middlewares)
- const store = mockStore(state)
-
- it('renders default eth_logo identicon with no props', () => {
- const wrapper = mount(<IdenticonComponent store={store}/>)
- assert.equal(wrapper.find('img.balance-icon').prop('src'), './images/eth_logo.svg')
- })
-
- it('renders custom image and add className props', () => {
- const wrapper = mount(<IdenticonComponent store={store} className={'test-image'} image={'test-image'} />)
- assert.equal(wrapper.find('img.test-image').prop('className'), 'test-image identicon')
- assert.equal(wrapper.find('img.test-image').prop('src'), 'test-image')
- })
-
- it('renders div with address prop', () => {
- const wrapper = mount(<IdenticonComponent store={store} className={'test-address'} address={'0xTest'} />)
- assert.equal(wrapper.find('div.test-address').prop('className'), 'test-address identicon')
- })
-})