Skip to content

Commit

Permalink
Covered generation of validationErrors with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonShi authored and defunctzombie committed Jul 14, 2014
1 parent 7aacf40 commit fc23d5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/document.js
Expand Up @@ -199,7 +199,10 @@ module.exports.validate = function(assert) {
var xmlDocInvalid = libxml.parseXml(xml_invalid);

assert.equal(xmlDocValid.validate(xsdDoc), true);
assert.equal(xmlDocValid.validationErrors.length, 0);

assert.equal(xmlDocInvalid.validate(xsdDoc), false);
assert.equal(xmlDocInvalid.validationErrors.length, 1);

assert.done();
}

0 comments on commit fc23d5c

Please sign in to comment.