Skip to content

Commit

Permalink
fix: badge
Browse files Browse the repository at this point in the history
  • Loading branch information
h13i32maru committed Aug 10, 2015
1 parent 11eaf4e commit 645a256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Publisher/Builder/CoverageBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export default class CoverageBuilder extends DocBuilder {
let color;
if (ratio < 50) {
color = '#db654f';
} else if (coverage < 90) {
} else if (ratio < 90) {
color = '#dab226';
} else {
color = '#4fc921';
color = '#4c1';
}
let badge = this._readTemplate('image/badge.svg');
badge = badge.replace(/@ratio@/g, ratio + '%');
Expand Down

0 comments on commit 645a256

Please sign in to comment.