Permalink
Browse files

fix: badge

  • Loading branch information...
h13i32maru committed Aug 10, 2015
1 parent 11eaf4e commit 645a2569c4d814a0a494d3759d2b3be47c68f25f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Publisher/Builder/CoverageBuilder.js
@@ -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 + '%');

0 comments on commit 645a256

Please sign in to comment.