Skip to content

Releases: Legitcode/tests

0.6.1

08 Oct 17:57
Compare
Choose a tag to compare

Added component back to the test object

0.6.0

07 Oct 19:51
Compare
Choose a tag to compare

Updated for React 0.14 :D #15

0.5.2

06 Oct 20:35
Compare
Choose a tag to compare

Added React back as a global

0.5.1

05 Oct 21:09
Compare
Choose a tag to compare

Added alt store tests #20

0.5.0

02 Oct 18:32
Compare
Choose a tag to compare

Added mixins, removed helpers. See #24

0.4.4

24 Sep 17:54
Compare
Choose a tag to compare

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
Choose a tag to compare

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
Choose a tag to compare

updated dependencies, changed readme

0.4.0

18 Sep 23:08
Compare
Choose a tag to compare

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
Choose a tag to compare
  • find shorthand

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