aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns/tests/network-dropdown-icon.test.js
diff options
context:
space:
mode:
authortmashuang <thomas.b.huang@gmail.com>2018-09-25 00:28:04 +0800
committertmashuang <thomas.b.huang@gmail.com>2018-09-25 00:28:04 +0800
commita0a57c24fd639c4808ed3e083089b9f1fb3373e6 (patch)
tree5a009cacab793398b1749e0d1e5af17c79af6322 /ui/app/components/dropdowns/tests/network-dropdown-icon.test.js
parent82ec86d953cb22d36f9b67d35e3d994d7d2d245d (diff)
downloadtangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.tar
tangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.tar.gz
tangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.tar.bz2
tangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.tar.lz
tangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.tar.xz
tangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.tar.zst
tangerine-wallet-browser-a0a57c24fd639c4808ed3e083089b9f1fb3373e6.zip
Some Ui tests
Diffstat (limited to 'ui/app/components/dropdowns/tests/network-dropdown-icon.test.js')
-rw-r--r--ui/app/components/dropdowns/tests/network-dropdown-icon.test.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/app/components/dropdowns/tests/network-dropdown-icon.test.js b/ui/app/components/dropdowns/tests/network-dropdown-icon.test.js
new file mode 100644
index 000000000..67b192c11
--- /dev/null
+++ b/ui/app/components/dropdowns/tests/network-dropdown-icon.test.js
@@ -0,0 +1,25 @@
+import React from 'react'
+import assert from 'assert'
+import { shallow } from 'enzyme'
+import NetworkDropdownIcon from '../components/network-dropdown-icon'
+
+describe('Network Dropdown Icon', () => {
+ let wrapper
+
+ beforeEach(() => {
+ wrapper = shallow(<NetworkDropdownIcon
+ backgroundColor = {'red'}
+ isSelected = {false}
+ innerBorder = {'none'}
+ diameter = {'12'}
+ />)
+ })
+
+ it('adds style props based on props', () => {
+ const styleProp = wrapper.find('.menu-icon-circle').children().prop('style')
+ assert.equal(styleProp.background, 'red')
+ assert.equal(styleProp.border, 'none')
+ assert.equal(styleProp.height, '12px')
+ assert.equal(styleProp.width, '12px')
+ })
+})