Skip to content

Commit

Permalink
fix summary status
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Dec 15, 2023
1 parent 2a1ec50 commit 2eeedbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/v8/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const calculatePctAndStatus = (item, watermarks) => {

if (indicateData.total) {
pct = Util.PNF(indicateData.covered, indicateData.total, 2);
status = Util.getStatus(indicateData.pct, watermarks[k]);
status = Util.getStatus(pct, watermarks[k]);
}

indicateData.pct = pct;
Expand Down
2 changes: 1 addition & 1 deletion scripts/conf.cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const beforeV8 = (item, Util) => {

// using global coverage data
const dataFile = 'coverage-data.js';
const jsDataPath = path.resolve(__dirname, `../docs/v8/${dataFile}`);
const jsDataPath = path.resolve(__dirname, `../docs/v8-minify/${dataFile}`);
if (!fs.existsSync(jsDataPath)) {
EC.logRed(`ERROR: Not found: ${jsDataPath}`);
return 0;
Expand Down

0 comments on commit 2eeedbc

Please sign in to comment.