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.
25 lines
716 B
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')
|
|
})
|
|
})
|
|
|