3.0.0 • Published 7 years ago

chai-have-react-component v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

chai-have-react-component

expect(element).to.have.component(Blink)

Installation

npm install --save-dev chai-have-react-component

Usage

import chai from 'chai'
import chaiHaveReactComponent from "chai-have-react-component"

chai.use(chaiHaveReactComponent)

// it should pass
expect(<div><Super /></div>).to.have.component(Super)

// should fail with "Expected 'div' to not have component 'SuperDuper'"
expect(<div><Super /></div>).to.not.have.component(Super)

Found a bug?

Please open a pr with a broken test.


MIT © Rolf Erik Lekang

3.0.0

7 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

8 years ago

2.2.1

8 years ago

2.2.0

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago