Skip to content

Commit

Permalink
Merge 4140d85 into f0621f0
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Mar 22, 2020
2 parents f0621f0 + 4140d85 commit 3b452e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -95,6 +95,7 @@ Examples

```js
var coberturaBadger = require('istanbul-cobertura-badger');
var path = require('path');

// Use the fixture that's without problems
var opts = {
Expand All @@ -111,9 +112,10 @@ var opts = {
};

// Load the badge for the report$
badger(opts, function parsingResults(err, badgeStatus) {
coberturaBadger(opts, function parsingResults(err, badgeStatus) {
if (err) {
console.log("An error occurred: " + err.message);
console.error("An error occurred:", err.message);
return;
}
console.log("Badge successfully generated at " + badgeStatus.badgeFile.file);
console.log(badgeStatus);
Expand Down

0 comments on commit 3b452e1

Please sign in to comment.