A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/app/components/dropdowns/tests/network-dropdown-icon.test.js

25 lines
716 B

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')
})
})