Skip to content

Commit

Permalink
Fix Single root element only
Browse files Browse the repository at this point in the history
* Verified that there is a single root element only

* Improved detection of single root nodes

* Further improved the detection of single root node

* Improved test method names

* Improved tests

- Grouped similar tests in single "describe"
- Removed huge XML file to reduce size of the repo again.
  • Loading branch information
nhuethmayr authored and amitguptagwl committed Dec 9, 2019
1 parent e6aadaa commit 9225c04
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
4 changes: 3 additions & 1 deletion spec/assets/large.xml
32 changes: 32 additions & 0 deletions spec/validator_spec.js
18 changes: 17 additions & 1 deletion src/validator.js

0 comments on commit 9225c04

Please sign in to comment.