Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Feb 11, 2017
1 parent ae94c79 commit e1c4c7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
This file contains highlights of what changes on each version of the [LCOV Reports for JS](https://github.com/cedx/lcov.js) library.

## Version 0.2.1
- Fixed a bug in `Report.parse()` method.

## Version 0.2.0
- Breaking change: changed the signature of most constructors.
- Empty test names are not included in the report output.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bugs": "https://github.com/cedx/lcov.js/issues",
"license": "Apache-2.0",
"repository": "cedx/lcov.js",
"version": "0.2.0",
"version": "0.2.1",

"jsnext:main": "./src/index",
"main": "./lib/index",
Expand Down
2 changes: 1 addition & 1 deletion src/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class Report {
break;

case Token.LINE_DATA:
if (data.length < 3) throw new Error('Invalid line data.');
if (data.length < 2) throw new Error('Invalid line data.');
record.lines.data.push(new LineData(
parseInt(data[0], 10),
parseInt(data[1], 10),
Expand Down

0 comments on commit e1c4c7c

Please sign in to comment.