Releases: Legitcode/tests
Releases · Legitcode/tests
0.6.1
08 Oct 17:57
Compare
Sorry, something went wrong.
No results found
Added component back to the test object
0.6.0
07 Oct 19:51
Compare
Sorry, something went wrong.
No results found
Updated for React 0.14 :D #15
0.5.2
06 Oct 20:35
Compare
Sorry, something went wrong.
No results found
Added React back as a global
0.5.1
05 Oct 21:09
Compare
Sorry, something went wrong.
No results found
Added alt store tests #20
0.5.0
02 Oct 18:32
Compare
Sorry, something went wrong.
No results found
Added mixins, removed helpers. See #24
0.4.4
24 Sep 17:54
Compare
Sorry, something went wrong.
No results found
Added in ability to import tests without the dom being loaded:
import Test from 'legit-tests/no-dom'
fixes #14
0.4.2
24 Sep 00:16
Compare
Sorry, something went wrong.
No results found
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
20 Sep 07:01
Compare
Sorry, something went wrong.
No results found
updated dependencies, changed readme
0.4.0
18 Sep 23:08
Compare
Sorry, something went wrong.
No results found
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
18 Sep 19:08
Compare
Sorry, something went wrong.
No results found
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