Tests Versions Save

Chainable, easy to read, React testing library

0.6.1

8 years ago

Added component back to the test object

0.6.0

8 years ago

Updated for React 0.14 :D #15

0.5.2

8 years ago

Added React back as a global

0.5.1

8 years ago

Added alt store tests #20

0.5.0

8 years ago

Added mixins, removed helpers. See #24

0.4.4

8 years ago

Added in ability to import tests without the dom being loaded:

import Test from 'legit-tests/no-dom'

fixes #14

0.4.2

8 years ago

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.0

8 years ago

updated dependencies, changed readme

0.4.0

8 years ago

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

8 years ago
  • 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