Skip to content

Commit

Permalink
hot fix and bump version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamepeixinho authored Dec 24, 2018
1 parent 9fa9755 commit 63589d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

/* eslint-disable semi */
const mkdirp = require('mkdirp');
const { get } = require('https');
Expand Down Expand Up @@ -54,7 +56,7 @@ const getBadge = (report, key) => {
const coverage = report.total[key].pct;
const colour = getColour(coverage);

return `https://img.shields.io/badge/Coverage-${coverage}${encodeURI('%')}-${colour}.svg`;
return `https://img.shields.io/badge/Coverage${encodeURI(':')}${key}-${coverage}${encodeURI('%')}-${colour}.svg`;
}

const download = (url, cb) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-coverage-badges",
"version": "1.1.1",
"version": "1.1.2",
"description": "Create a group of coverage badges from jest",
"main": "cli.js",
"bin": "cli.js",
Expand Down

0 comments on commit 63589d8

Please sign in to comment.