diff --git a/tests/stylized/BulletListStyle.js b/tests/stylized/BulletListStyle.js new file mode 100644 index 0000000..fff2cb5 --- /dev/null +++ b/tests/stylized/BulletListStyle.js @@ -0,0 +1,42 @@ +import React from 'react' + +import { mount, render } from 'enzyme' +import chai, { expect } from 'chai' +import chaiEnzyme from 'chai-enzyme' +import sinon from 'sinon' + +chai.use(chaiEnzyme()) + +import BulletListStyle from '../../src/stylized/BulletListStyle' + +describe(':', () => { + it('has a `svg`', () => { + const wrapper = render() + expect(wrapper.find('svg')).to.have.length(1) + }) + + it('has a `rect` with `clip-path`', () => { + const wrapper = render() + expect(wrapper.find('rect[clip-path]')).to.have.length(1) + }) + + it('has a `linearGradient`', () => { + const wrapper = render() + expect(wrapper.find('linearGradient')).to.have.length(1) + }) + + it('has three `stop`', () => { + const wrapper = render() + expect(wrapper.find('stop')).to.have.length(3) + }) + + it('has `stop` inside the `linearGradient`', () => { + const wrapper = render() + expect(wrapper.find('stop').parent().is('lineargradient')).to.equal(true) + }) + + it('has four `circle`s followed by a `rect`', () => { + const wrapper = render() + expect(wrapper.find('circle + rect')).to.have.length(4) + }) +})