Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwinch/must-jsx
Add JSX assertions to Must.js.
https://github.com/nwinch/must-jsx
Last synced: 26 days ago
JSON representation
Add JSX assertions to Must.js.
- Host: GitHub
- URL: https://github.com/nwinch/must-jsx
- Owner: nwinch
- Created: 2016-02-03T08:06:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-09T07:24:51.000Z (over 8 years ago)
- Last Synced: 2024-03-24T18:01:56.489Z (10 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/nwinch/must-jsx.svg?branch=master)](https://travis-ci.org/nwinch/must-jsx)
# must-jsx
Add JSX assertions to Must.js.## Install
```javascript
npm install must-jsx
```## Usage
*Note*: If you're using `[email protected]` please use version `2.0.0` or less.
```javascript
import must from "must"
import mustJSX from "must-jsx"mustJSX(must)
...
// Test component
class Garry extends Component {
render() {
returnGarry will {this.props.will}
}
}describe("Component", function() {
it("must render correctly", function() {
const el =Garry will be avenged!// React shallow renderer
render().must.be.jsx(el)
})
})```