Releases: Legitcode/tests
Releases · Legitcode/tests
0.6.1
Added component
back to the test object
0.6.0
Updated for React 0.14 :D #15
0.5.2
Added React back as a global
0.5.1
Added alt store tests #20
0.5.0
Added mixins, removed helpers. See #24
0.4.4
Added in ability to import tests without the dom being loaded:
import Test from 'legit-tests/no-dom'
fixes #14
0.4.2
Added .element
Test(<TestComponent/>)
.find('.box')
.element(box => {
expect(box.props.children).to.be.equal('found me!')
})
//or specify the element
.find('.box')
.find('div')
.element('box', box => {
expect(box.props.children).to.be.equal('found me!')
})
0.4.1
updated dependencies, changed readme
0.4.0
this.component
is now the component itself and the rendered instance is this.instance
, hence the version bump, tests need to be changed to use instance vs component
0.3.4
If you are only adding elements from the find method to your helpers object you can access them easier:
helpers.elements.div.props => div.props
in your test method