2.0.0 • Published 8 years ago

chai-assert-jsx v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

chai-assert-jsx

a chai assert plugin to compare JSX elements without trying to compare functions

Installation

Node.js

Install via npm:

npm install chai-assert-jsx

You can then use this plugin like any other Chai plugin:

import chai, {assert} from 'chai';
import assertJSX from 'chai-assert-jsx'

chai.use(assertJSX);

assert.equalJSX(<div></div>, <div></div>);
2.0.0

8 years ago

1.0.0

8 years ago