Skip to content

Commit

Permalink
Fixed a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Jul 12, 2017
1 parent 21e7cca commit 9f015b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/report_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ describe('Report', () => {
});

it('should throw an error if the input is invalid', () => {
expect(() => Report.parse('ZZ:dummy')).to.throw();
expect(() => Report.parse('ZZ')).to.throw('invalid LCOV format');
});

it('should throw an error if the report is empty', () => {
expect(() => Report.parse('TN:Example')).to.throw();
expect(() => Report.parse('TN:Example')).to.throw('coverage data is empty');
});
});

Expand Down

0 comments on commit 9f015b6

Please sign in to comment.