4.0.0 • Published 8 years ago

must-jsx v4.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

Build Status

must-jsx

Add JSX assertions to Must.js.

Install

npm install must-jsx

Usage

Note: If you're using react@0.14 please use version 2.0.0 or less.

import must from "must"
import mustJSX from "must-jsx"

mustJSX(must)

...

// Test component
class Garry extends Component {
  render() {
    return <div>Garry will {this.props.will}</div>
  }
}

describe("Component", function() {
  it("must render correctly", function() {
    const el = <div>Garry will be avenged!</div>

    // React shallow renderer
    render(<Garry will="be avenged!" />).must.be.jsx(el)
  })
})
4.0.0

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.1

8 years ago