Skip to content

Commit

Permalink
tooltip test fix bulwark-crypto#23
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinengle committed Aug 21, 2018
1 parent a749062 commit 1420139
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/Tooltip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import Tooltip from '../react/Tooltip'
describe('<Tooltip />', () => {
it('renders as a tooltip', () => {
const wrapper = shallow(<Tooltip content="testtip">testtip</Tooltip>)
expect(wrapper.children()).to.have.length(2)
expect(wrapper.children().at(0).html()).to.equal('<span class="tooltip__content">testtip</span>')
expect(wrapper.children().at(1).text()).to.equal('testtip')
expect(wrapper.hasClass('tooltip')).to.be.true()
})

it('renders as a tooltip__content', () => {
Expand Down

0 comments on commit 1420139

Please sign in to comment.