• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NaturalIntelligence / fast-xml-parser / 472
98%

Build:
DEFAULT BRANCH: master
Ran 24 Dec 2019 12:41PM UTC
Jobs 2
Files 9
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
472

push

travis-ci

amitguptagwl
Validator: Fail for stray ampersand characters (#215)

* Introduce a helper function for simplifying the tests

The following:
    const xmlData = '<name length="bar" length="baz"></name>';
    var expected = { code: 'InvalidAttr', msg: "Attribute 'length' is repeated.", line: 1 }
    var result = validator.validate(xmlData).err;
    expect(result).toEqual(expected);

Can be replaced by:
    validate('<name length="bar" length="baz"></name>', { InvalidAttr: "Attribute 'length' is repeated." }

* Validator: Fail for stray ampersand characters

Fixes #214

414 of 440 branches covered (94.09%)

31 of 31 new or added lines in 1 file covered. (100.0%)

624 of 647 relevant lines covered (96.45%)

1299340.29 hits per line

Jobs
ID Job ID Ran Files Coverage
2 472.2 24 Dec 2019 12:41PM UTC 0
96.45
Travis Job 472.2
3 472.3 24 Dec 2019 12:41PM UTC 0
96.45
Travis Job 472.3
Source Files on build 472
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #472
  • a8ccdb9e on github
  • Prev Build on master (#463)
  • Next Build on master (#473)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc