Xml assertions for Chai.
In addition to the chai package, you need to install the plugin :
npm install chai-xml --save-dev
var chai = ;var expect = expect;var chaiXml = ;//loads the pluginchai;;
- XML must be a string
- Add the property
xmlto your chain
equal/eq/equalsmethods compare XML instead of the strings
validmethod check whether the XML is well-formed
Any contribution is welcome! Please check the issues. Do some unit tests as far as possible.
- 0.3.0 adding
deepcomparison. Thanks to PR #2
- 0.3.1 change package.json keywords
- 0.3.2 Add eslint, fix parsing error when invalid, add package-lock.json
- 0.2.0 initial release. Support
validmethod and overwrite the
Copyright (c) 2014-2018 Bertrand Chevrier
Licensed under the MIT license.