import must from "must"
import mustJSX from "must-jsx"
mustJSX(must)
...
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>
render(<Garry will="be avenged!" />).must.be.jsx(el)
})
})